News Feed
Sections




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

Ibuildings techPortal:
Learning PHP 5.3 by writing your own ORM
January 11, 2010 @ 15:28:00

In this new post from the Ibuildings techPortal today Peter Verhage suggests a good way to learn all about the new features in PHP 5.3 - build your own ORM system.

Creating an ORM for PHP is not an everyday task but writing one is a good way to improve your PHP skills, especially if you use some of the additional features PHP 5.3 adds to the language. There are many excellent ORMs (Object Relational Mappings) already in existence and for a real-world project it would probably better to use one of these, but this tutorial uses the task of creating an ORM as a way to take a look at applications for some PHP 5.3 features.

He makes use of namespaces, interfaces, static variable/method handling, magic methods like "__set" and "__unset" as well as abstract classes - all features of some of the latest PHP releases (5.2+). By the end you'll have a basic ORM layer that can do all of the usual CRUD operations as well as more complicated searching and a few things those familiar with the Zend Framework are used to.

0 comments voice your opinion now!
orm tutorial database feature


blog comments powered by Disqus

Similar Posts

Zend Developer Zone: 2 Beginners Guides I Wish I had when I Started with PHP

PHPBuilder.com: Using XML, Part 5 - SOAP and WSDL

SitePoint PHP Blog: The Joy of Regular Expressions [4]

Test.ical.ly Blog: Wrapping symfonys functional tests in a PHPUnit test case

Hasin Hayder's Blog: Complete oAuth script for Twitter and LinkedIn using PECL oAuth Extension


Community Events





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


podcast library unittest series configure install release symfony code language introduction api application interview list laravel threedevsandamaybe wordpress developer community

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