Gonzalo Ayuso's Blog: Using Monkey Patching to store files in Co...

Courtesy PHPDeveloper.org  Thu, 09/02/2010 - 13:10

Gonzalo Ayuso takes his "CouchDb as a filesystem" approach one step further (see the previous post about it here ) with this new post talking about monkey patching to store files into the CouchDb server using the normal PHP file handling functions.

Since PHP5.3 a new design pattern is available for us: Monkey Patching. With this pattern we can override PHP's core functions with a home-made functions in a different namespace (another example here ...


 

More related items

Gonzalo Ayuso's Blog: Building a client for a REST...
Gonzalo Ayuso has a new post to his blog showing how to make a PHP-based client for a REST API with the help of his handy tool. Today we're going to create a library to use a simple...

Gonzalo Ayuso's Blog: Function decorators in PHP with...
Gonzalo Ayuso has a new post to his blog looking at some of the recent work he's done with PHPDoc and annotations to create "function decorators" in his code. The idea is to solve the same...

Gonzalo Ayuso's Blog: My VIM configuration for PHP...
In a search for his perfect development environment (note "his" not "the") Gonzalo Ayuso has taken another look at vim in a new post to his blog with some handy plugins and commands he's...


 

Post new comment

The content of this field is kept private and will not be shown publicly.
computer-internet.marc8.com