-
Managing authentication with Zend\Authentication in PHP projects
23 August 2014 —
Comments 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…
-
Migrating from Wordpress to Sculpin
02 August 2014 —
Comments Some time ago, on January 2014, I decided to start writing a blog. Seemed like a good idea. I might be able to show my skills and learn new ones at the same time. I didn't wanted to use a very complex tool for this purpose, or to create one of my own (why to reinvent the wheel?), so I decided that b…
-
Dependency management and autoloading in php projects with composer
19 July 2014 —
Comments One of the common problems we have to confront when starting a new PHP project is how to handle the different dependencies we are going to have. One could think the easier solution is to download all the libraries we are going to need, put them in a lib directory and add them to the version control …
-
How to properly use the Zend framework 2 service manager as a dependency injection container
03 July 2014 —
Comments The service manager is one of the most important components in Zend Framework 2. It easily allows us to handle object instances, construct them and share them between other objects. By using a simple configuration file, we define how our objects have to be constructed, by a simple new, by using a f…
-
Create modules with sub-namespaces in Zend Framework 2. Part II
21 June 2014 —
Comments Some weeks ago, I explained how to create modules with sub-namespaces in a Zend Framework 2 application. On that article I created an example module that we could add in our modules directory, but what if we want to distribute that module through the composer network to be installed as a vendor modu…