- Using ServiceManager 3 lazy services to improve your PHP application performance
Performance is an important subject when a project grows. There are some good practices that make projects more maintainable, like dependency injection, however, creating all the objects at the beginning of the request could reduce the application performance. If some of the created objects are not …
tag Archive — "zf"
— 2016 —
- Improving Zend\ServiceManager workflow with annotations
Everyone who regularly visits my blog knows that I'm an absolute fan of the Zend\ServiceManager component. It is always my choice to deal with dependency injection in any kind of project, more now that v3 has been released, which is faster and has a better public API. The workflow while working with…
— 2015 —
- Improve dependency injection in PHP apps with Zend Framework plugin managers
I have spoken many times at this blog about dependency injection, and how the ZF2 ServiceManager is one of the best tools to solve it. You can read these related articles to know more: How to properly use the Zend framework 2 service manager as a dependency injection container Advanced usage of Ser…
- Working with sub-namespaced modules in Zend Framework 2 the right way
About a year ago I wrote two articles discussing the best way to work with modules with sub-namespaces in Zend Framework 2. Here you can find Part 1 and Part 2 The solution provided in those articles was functional, but it introduced some new problems to deal with. It happens that after some time wo…
- Emails in Zend Framework 2 with ZF2-AcMailer version 5
About a month ago I released the Zend Framework 2 module ZF2-AcMailer version 5.0.0. This new major version includes some important improvements, and a new configuration system that allows multiple mail services to be registered. When this module was on its first version, I wrote an article explaini…
- Dynamically create doctrine entity managers in Zend Framework 2
Some time ago I published an article talking about different Doctrine configurations when using the DoctrineORMModule in Zend Framework 2 applications, so that you can create multiple database connections, either by using one entity manager or more than one. Since then, many people have asked me how…
- Managing objects creation and dependency injection with Zend\ServiceManager
Some time ago I wrote the most successful article of this blog, Advanced usage of ServiceManager in Zend Framework 2, explaining all the ways a service can be created by making use of Zend\ServiceManager, the service container component in Zend Framework 2. On this article I'm going to show a real e…
- Translations and internationalization in PHP projects with Zend\I18n
Any medium and large project has to deal at some point with the problem of translating the application itself to other languages. There are many tools and standards to do this, but one of my favourite components is Zend\I18n. Everybody who knows me is aware that I love Zend Framework, but unfortunat…
— 2014 —
- File uploads with Zend Framework 2 and jQuery
We are all very used to file uploads in plenty of web applications. From simple image uploads to a social network to multiple file uploads to file management applications like Dropbox. On this article I'm going to explain how to handle asynchronous multifile uploads from a jQuery powered front-end t…
- Advanced usage of ServiceManager in Zend Framework 2
After a time working with Zend Framework 2 one is used to use the ServiceManager, which is one of the most powerful components in the framework. It eases the creation of objects and performing dependency injection, allowing us to define how objects are created just in one place and letting the Servi…