-
The PhpStorm plugins of my choice
16 September 2017 —
Comments Earlier last week I found a github repository which collects different resources related with PhpStorm. Plugins, themes, utilities... I found it very interesting, because I think PhpStorm is the best PHP IDE by far, and I've been using it on an almost daily basis for the last 4 years. The thing is t…
-
Reusing factories in Zend ServiceManager
21 July 2017 —
Comments 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. Every container has a sl…
-
How to customize 'not found' and 'method not allowed' response prototypes in Zend expressive 2
28 May 2017 —
Comments Sometimes the nature of an application requires you to change the default framework's way to structure error responses (like 404 and 405). On this article I'm going to explain how to customize those responses when working with Zend Expressive 2. Expressive 1. Error handler. In Expressive 1, error ha…
-
Take advantage of vault project's high availability with an AWS internal load balancer
23 April 2017 —
Comments In a project I'm working on, we recently needed to add some kind of encryption system that allowed us to store sensitive information in a secure manner, but being able to access to it at runtime in order to pass it to third party services. Securely storing your own app passwords is easy. You just ha…
-
Set specific IP addresses to docker containers created with docker-compose
21 April 2017 —
Comments Recently I have been testing one service and its clustering capabilities, in order to see if it fits in a project I'm working on. I decided the easiest way to do this was by creating a couple docker containers and setting up a cluster between them. It should be an easy task in theory. My first appro…