News Feed
Sections

News Archive
Alex Netkachov's Blog:
PHP fluent API tips
October 29, 2007 @ 07:57:00

In response to Travis Swicegood's post about fluent APIs, Alex Netkachov has added some of his own examples to the topic from the Zend Framework and the popular Javascript library, jQuery.

In his recent post Travis Swicegood is talking about the "Fluent API". This kind of API is very popular in scripting languages and I use it during my work with Zend Framework or jQuery projects. Another good example of such technique is Document Object Model API.

His examples show the method chaining that's the hallmark of fluent interfaces. Unfortunately, there's no good way to just make an object and call a fluent interface on it in PHP, so Alex suggests a simple little wrapper (that just returns the object) to make it easier.

0 comments voice your opinion now!
fluent api tip zendframework jquery wrapper object fluent api tip zendframework jquery wrapper object



Similar Posts

Stubbles Blog: Two New PHP6 Wishlist Items

Derick Rethans' Blog: PHP Vikinger 2008 Wrap-up

Padraic Brady's Blog: ext/snarl: PHP interface to the Windows Snarl Notification Tool API

APress.com: Quick Caching With PHP Sessions

Raphael Stolt's Blog: Using the Zend Framework plugins for server-sided Ajax request identification


Community Events











Don't see your event here?
Let us know!


framework developer release zendframework conference security code zend job mysql package ajax PHP5 cakephp example database application book PEAR releases

All content copyright, 2008 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework