-
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…
-
Create modules with sub-namespaces in Zend Framework 2
21 May 2014 —
Comments The Zend Framework 2 module system is one of its greatest features. You can create re-usable modules very easily. Each module has its own namespace, and each one of them should provide an autoloader implementation for the application to be able to load its classes. The basics Usually we give a name …