News Feed
Jobs Feed
Sections




News Archive
Travis Swicegood:
Fluent-API, here I come!
October 28, 2007 @ 22:34:43

On his blog, Travis Swicegood discusses method chaining and Fluent APIs in PHP5.
One of the things that bugs me about PHP is that fluent APIs that were made possible by method chaining in PHP 5 are hindered by the new keyword. In Python or Javascript it's possible to instantiate the object and continue chaining it.
Check out the comments on his blog for more code examples and solutions for implementing method chaining in PHP5
0 comments voice your opinion now!
fluentapi methodchaining api php5 tutorial fluentapi methodchaining api php5 tutorial


blog comments powered by Disqus

Similar Posts

Gonzalo Ayuso: Building a simple API proxy server with PHP

JellyandCustard.com: Using DirectoryIterator to List Files in PHP

Community News: PHPKnowHow.com - PHP in Plain English

PHPSnippets.info: Convert currencies using PHP, Google and cURL

Nexen.net: PHP Statistics for July 2007


Community Events











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


development example testing release functional opinion tool phpunit application introduction object code podcast series language framework zendframework2 interview community unittest

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