What is Doctrine? Doctrine is a popular ORM for PHP which works with RDBMS via PHP objects. This is built inspired by Hibernate from JAVA. This acts as an abstraction layer between PHP and RDBMS. What is it good for? It really hide the the business logics (tables, sql, relations) via the db abstraction layer while active record map objects to tables. It has a strong caching (of cached caching) system with apc, memcached, sqlite Caching...
Read MoreHere is my 2 cents on Doctrine (ORM)
Generate a twitter like timespan from a given timestamp in Symfony2 or ZF2
We must have seen the human readable time in twitter saying that something like about 2 hours ago… etc. In this post we will see a walk around on how to do it in a Symfony2, Zend Framework2 or any other PHP based application. I wrote and used this class as helper in one of my Symfony2 project. This helper could be used in Zend Framework as well. I used some PHP magic methods to cope with different configuration settings so that any...
Read More
