Software development, agile methodologies and open source projects.
Tag Archive — "zf2"
- Reusing factories in Zend ServiceManager
I think it is doubtless that modern PHP embraces SOLID principles, and therefore, dependency injection.
That's why every modern PHP application needs a dependency injection container to deal with it.
There are several options out there, depending on the way you like to work. Ev...
- 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
- 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 t...
- 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 wrot...
- 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 peo...
- 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 g...
- 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 Fram...
- 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 jQuer...
- 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 ...
- Unit testing Zend Framework 2 modules
One of the first articles I wrote in this blog was an introduction to unit testing PHP applications. You can find it here in case you need to know the first steps and the theory.
On this article I'm going to explain how to get a Zend Framework 2 module tested. It is indeed very ...