2013年3月23日星期六

Community News: Packagist Latest Releases for 03.23.2013

Recent releases from the Packagist:

2013年3月22日星期五

Site News: Popular Posts for the Week of 03.22.2013

Popular posts from PHPDeveloper.org for the past week:

Community News: Packagist Latest Releases for 03.22.2013

Recent releases from the Packagist:

W3 Techs: PHP version 5.3 is now the most used version, just ahead of 5.2


According to this new report on the W3 Techs site, the usage of PHP 5.2 has been passed up by the numbers for the usage of PHP 5.3 (finally).



PHP 5.3 has been released in June 2009, so it took a while to gain that level of popularity. End of support for PHP 5.2 has been declared in December 2010, but is was still the most popular version until now. Version 5.3 will enter the end-of-life cycle in March 2013. Version 5.4, used by only 3.0%, is now considered state-of-the-art.


The numbers have been consistently trending towards intersection with the usage of PHP 5.4 picking up, but no where near the 5.3 and 5.2 numbers. They also point out that PHP version adoption has a history of being slow. Contributing factors to this could be the overall impression of the language and how much "room for improvement" it seems to have.



It's not difficult to predict that PHP as a language will continue to dominate web development in the near future. What will be more exciting is to watch what new versions of PHP will look like.

Rob Allen: Objects in the model layer


In this latest post to his site Rob Allen talks some about application structure and the different kinds of objects he uses in his applications.



I currently use a very simple set of core objects within my model layer: entities, mappers and service objects. [...] I dislike the phrase "service object" as the word "service" means so many things to so many people. I haven't heard a better phrase yet that everyone understands though.


He defines each of the types of objects to help make the separation clearer. Here they are in brief:



  • Entities are objects that represent something in my business logic.
  • Mappers know how to save and load an entity from the data store.
  • Service objects provide the API that the rest of the application uses.


Some of the comments on the post relate his choices to use in Zend Framework v2-based applications, noting that there are some base components you can extend to create these kinds of objects.

Inviqa techPortal: PHPNE 2013 Conference Report


If you weren't able to attend this year's PHPNE conference, the Inviqua techPortal has posted this glimpse into what happened during this day long event.



As a native geordie I was pleased to have a chance to attend a PHP conference in the north east. Even after living in Manchester for nearly a decade now, Newcastle still feels like home. [...] I arrived in plenty of time to enjoy the complimentary bacon sandwich and coffee on offer before finding some faces I recognised and settling in to the Electra Room where the main track was due to start, with Inviqa's very own Rowan Merewood taking to the stage to deliver the opening keynote.


He goes through each of the talks he attended (including the keynote) and gives an overview of their content:



  • Building Better Developers (Rowan Merewood)
  • API Driven Development: Eating Your Own Dog Food (Alex Bilbie)
  • Measuring and Logging Everything in Real Time (Bastian Hofmann)
  • Modernisation of legacy PHP applications using Symfony2 (Fabrice Bernhard)
  • Introduction to Symfony CMF (Likas Kahwe Smith)
  • Keeping The Cloud In Check (Thijs Feryn)


I took something from every talk and I don't really have a bad word to say about any of it. I hope this does not end up as the only PHPNE, it is only a shame that next year a new venue will likely need to be found as I expect demand for tickets will be high.

PHP.net: PHP 5.5.0 beta1 available


As is mentioned on PHP.net today, the first beta release of the upcoming PHP 5.5.0 series of the language has been posted for testing - PHP 5.5.0 beta1. This is a development preview and is not meant for production use.



The PHP development team announces the release of the first beta of PHP 5.5.0. This release is the first to include the Zend OPCache. Please help our efforts to provide a stable PHP version and test this version carefully against several different applications, with Zend OPCache enabled and report any bug in the bug tracking system.


This beta includes the mentioned OPCache (formerly the Zend Optimizer+), the array_column function, support for non-scalar Iterator keys in foreach and titling your PHP CLI processes. There's other changes as well, so check out the NEWS for all of them. If you'd like to help out and test this release against your application, check out this post from Phil Sturgeon