News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Joseph Crawford's Blog:
MySpace PHP REST Library
April 30, 2009 @ 10:25:55

For those still looking to interface with MySpace, Joseph Crawford has pointed out an official REST library for PHP to connect with their API.

Over the last few days I have been digging deep into the concepts of REST. I have been reading through my copy of RESTful Web Services. Out of curiosity I searched Google for a "php REST library" and it turned up the Official MySpace PHP REST Library.

He points out one interesting thing about it, though - it's like they started using an object-oriented design but build after making the classes with properties. No methods.

Even if they were to choose to go the PHP 5 way I would highly suggest that they do not use classes as containers for constants, there is no need to do this. It is not using proper OOP methodologies. Why create an object that just holds 2 - 4 constant variables, these would be better suited for define() calls in my opinion.
0 comments voice your opinion now!
myspace rest library php5 oop constant library


blog comments powered by Disqus

Similar Posts

PHPBuilder.com: What\'s new in PHP 5 and PHP 6

Internet Super Hero Blog: mysqlnd to support PDO, mysqlnd in PHP 5.3

Mike Naberezny's Blog: Horde/Yaml 1.0 Released

Alexander Netkachev's Blog: PHP IDE with debugger 0.1.6 is out

Sameer Borate's Blog: Google Translation PHP wrapper v1.7


Community Events











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


install framework series opinion introduction symfony2 package hack release hhvm composer security dependency podcast unittest component overview application language facebook

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