Alejandro Celaya | Blog

Software development, agile methodologies and open source software.

tag Archive — "zend-framework-2"

— 2015 —

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…

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 similar to test any P…

Managing authentication with Zend\Authentication in PHP projects

Authentication is one of the most usual tasks we need to resolve in medium and large web applications. There are many kinds of authentication. We could use database table authentication, HTTP authentication, LDAP authentication or any other kind of authentication we could imagine. Maybe we need to a…


Older postsNewer posts