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

Devshed:
Building a PHP ORM Deploying a Blog
December 09, 2011 @ 11:13:18

DevShed concludes their three-part series about building an ORM in PHP with this latest article. It introduces the idea of dependency injection into the mix, showing how it can be used in the relationships between entities.

if you've already read the two installments that precede this one, it's probable that you're familiar with the inner workings of this sample ORM. In those chapters I implemented the ORM's data access and mapping layers, along with a simple domain model. To be frank, the development of this last tier is entirely optional; however, it's useful for demonstrating the ORM's actual functionality in the deployment of a blog program, which naturally will handle some "typical" domain objects, namely blog entries, comments and authors.

They share the code for creating proxy objects and, using a "poor man's dependency injection container" made from a factory method, interfaces and service classes to handle the results.

0 comments voice your opinion now!
orm dependencyinjection container deploy blog service interface


blog comments powered by Disqus

Similar Posts

Juan Treminio: An introduction to Pimple and Service Containers

ThinkPHP Blog: SOAP API of spreadshirt.net

Geeks Not Nerds Blog: Rolling your own Blog Backend from Scratch Part 1

Simon Holywell: Idiorm and Paris 1.3.0 released - the minimalist ORM and fluent query builder for PH

Padraic Brady's Blog: An Example Zend Framework Blog Application - Part 1: Introductory Planning


Community Events











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


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

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