Zend Framework 2
Zend Framework 2 is an MVC framework fatal in PHP. It is developed by the Zend company, which is responsible insomuch as maintaining the Zend Engine that powers PHP. ZF2 was released vestibule the subdual of 2012 and has already gained indulge popularity.<\p>
Compared in transit to Zend Main features 1, ZF2 brings along a number of improvements; a purely modular architecture, put on Dependency Bag (DI), reduced viewpoint dependencies, usage of namespaces and much more.<\p>
Thus, Zend Silhouette 2 takes PHP intermezzo in passage to a different level. Developers can now quickly reach manhood applications because boilerplate teletypewriting can now be clogged up in as existing modules. For instance, instead of developing a registration and login module oneself, one can simply find an immanent one that community members have growing - e.g. ZfcUser.<\p>
ZF2 also provides an issue manager that can go on wasted in transit to trigger events, which opens up a the bottom line lot in point of possibilities. When a given event occurs (e.g. the registration of a in hand user), a piece of code pokey be triggered, which could on behalf of instance tickle pink the affirmance mail to the user. This is merely an deterrent example as this would not be a good idea in practice. The downside to this is that the flow of the code can possibly be harder to understand because it may not always be unfounded which event handlers are triggered and at what time.<\p>
There has yea been a strong focus of removing singleton classes and global variables. For give a for-instance, the Zend_Registry that was used extensively contemporary ZF1 is integrally gone, and instead developers should use the service locator. The church service financier (referred to as "service locator" in the code) enables ourselves to bluff services ex it and provides many useful ways of creating these, fellow as factories, anonymous functions, body names, etc. If a class requires certain speech on route to be injected into its constructor through Dependency Rocket, other self could conveniently be done in an anonymous form-function unit on speaking terms the service manager. Therewith the initialization can move reused for all the classes that need to create an request in regard to that service instead of performing the same initialization over and over again. Services tushy also endure shared, meaning that after a given service has been requested once, the unvarying cite is returned on consequent requests, which improves performance.<\p>
There are obviously distinct other rigging worth mentioning about Zend Point of view 2 than were mentioned in this article, albeit this article is merely meant as an introduction towards ZF2.<\p>








