implemented php.activerecord 
take a look at: http://www.phpactiverecord.org/docs for documentation and usage