Open source PHP web app development framework Symfony is charging its developer community batteries in a busy month. This September sees the Symfony Live London event staged, the release of Symfony 2.1.0 RC2, and the arrival of the Symfony 2.0.17 iteration.
Originally conceived by Sensio Labs for the development of websites for its own customers, the product now exists as a full stack framework, Symfony2 is also a collection of standalone components that can be used on their own outside the framework.
The framework is, in a sense, a "pick and mix" of components that can be used as a part of smaller projects. As such, they are introduced as a way of refactoring legacy code and can even be incorporated as part of other frameworks. Symfony components are already being used in libraries such as Doctrine2 (an Object Relational Mapper for database abstraction) and Guzzle (a PHP HTTP Client) as well as PHPBB4, the PPI Framework, and EZPublish.
NOTE: Symfony Live London features workshops for both beginners and experts. There will be conference talks from key members of the community including creator of Drupal Dries Buytaert. Attendees also have the chance to sit an exam to become certified Symfony developers.
To demonstrate its growth, Drupal developers are also incorporating Symfony2 components into Drupal 8, a step that Sensio suggests has the web community debating what Symfony2 can bring to the table.
According to Yair Spitzer, CEO of Sensio Labs UK, "Drupal developers have always prided themselves on innovation and are constantly looking for new ways to improve and better their model. Developers who have previously shied away from using the Drupal framework will be encouraged by the inclusion of Symfony components to further push innovation and improve code quality. Nevertheless, Drupal is growing fast and with demand for it ever increasing, adopting Symfony's many reuseable components has enabled them to enhance their own strong architecture with another strong architecture."
How We "Innovated" PHP
Symfony's developers insist that it has tried to "bring innovation to PHP" as it was one of the first major frameworks to embrace PHP 5.3, to introduce the usage of a Dependency Injection container, and to use a templating engine for its templates by default, Twig, which is now also adopted by major CMSes like Drupal and eZpublish.
It also looks outside PHP to draw inspiration from the best practices, libraries, and frameworks of other languages — Java, Python, etc. Symfony2 focuses on best practices and writing clean, readable, and testable (and well tested) code. The use of Dependency Injection along with the service container and event dispatcher make for flexible code that you can build on to ensure your application has high standards of code quality.
Symfony project developer Fabien Potencier blogs this week saying, "I've just released the second release candidate for Symfony 2.1.0. This release contains several security fixes related to the way XML is handled, and as such, we recommend everyone to upgrade. These issues have been also fixed in Symfony 2.0. After upgrading, run the web/config.php script from your browser and theapp/check.php script from the CLI to check if your PHP environment is setup properly. As we have added new checks, you might find some stuff to tweak."
Symfony2 favors configuration over convention so it can be reconfigured to suit the needs of a project. In the interests of freedom and happiness in the Open Source community, the framework is not in competition with any other frameworks as Symfony2 can be incorporated into any other framework to develop and enhance it.