Archive for the ‘Zend Framework’ tag
Give your .02$ to the ZF project
Zend Framework project is about to start working on the 2.0 version. If you are using ZF in your projects, but you are not interested in contributing ideas to the project by joining the zf-contributors mailing list, the least you could do is provide feedback about your ZF experience by answering a survey.
You can find more info at the devzone.
Zend Framework 1.8
Yesterday Zend Framework 1.8 was released and since I was ill and didn’t have much else to do I decided to have a look and make necessary changes to port our company CMS to the new version.
The new autoloader Zend_Loader_Autoloader is just what I was looking for to easily group the forms and models with my application modules. I definitively recommend to read a great article about the new autoloader at Zend Developer Zone.
The whole process of migrating from ZF 1.7.7 was quite painless I just had to replace:
Zend_Loader::registerAutoload
with
$loader = Zend_Loader_Autoloader::getInstance(); $loader->registerNamespace('MyApp_');
Zend_Log_Writer_Mail is finally in the stable distribution and It took only couple of lines of code to add this to our application logger so now when stuff go terribly wrong I at least know I will be getting an email about it.
You can view the full list of changes in the 1.8 release here.
I look forward to playing with Zend_Navigation and see if we how could we use it to cleanup some of the mumbo-jumbo we are currently doing with ACLs and navigational elements.
Zend_Validate_Db_RecordExists doesn’t look like much, but it makes me happy to remove some custom code because it is now supported in the framework.
“Benchmarking” PHP frameworks
Although I am not a Drupal user, the chance to visit Drupalcon in Szeged (Hungary) appeared and I couldn’t pass on that one. We got there a little bit late, but just in time to hear Rasmus Lerdorfs keynote speech Simple is Hard. There are some really good ideas for optimizing your applications performance and I strongly recommend it for every PHP developer.
There were also some things I really don’t agree that much. He showed a small PHP frameworks “benchmark” measuring the speed (response time and transactions per second) for each of this frameworks to output the simple HTML page printing out the “Hello world” string. Zend Framework (the framework of my choice) didn’t perform all that bad. Symfony was around 30% slower, and Solar was about 2 times faster. If you are really interested in the numbers have a look at the slides from the session.