Setup a Let's Encrypt certificate in a AWS Elastic Load Balancer
16 August 2016—
Comments Let's Encrypt is the latest internet trending. Its a relatively young Certification Authority which intends to provide free and automated SSL certificates so that everybody can set encryption to their sites and applications. It is a Linux Foundation project sponsored by most of the biggest Internet …
Creating a content-based Error Handler for Zend Expressive
29 July 2016—
Comments The other day I was working on a Zend Expressive application I'm currently building. The application includes a REST API among other things, but it also has some endpoints which render HTML. In one of my tests of the REST API I saw that when an error occurs (404, 405 or 500), I was getting an HTML r…
Project Scalability with Zend Expressive
21 July 2016—
Comments I've been working with some different frameworks lately. One of them is Zend Expressive, and I've come to the conclusion that I don't need to choose between different frameworks; depending on the project, Expressive always fits my needs and scales from small projects to bigger applications. The Micr…
Dispatch REST-like requests with a single controller class in Zend Expressive
24 June 2016—
Comments I was digging into Zend Expressive and how to use controllers that allow me to share dependencies between different routes, instead of having to use different middlewares every time. Abdul wrote a great article on this subject that you can find here, which also became part of Expressive's cookbook s…
Using ServiceManager 3 lazy services to improve your PHP application performance
12 June 2016—
Comments Performance is an important subject when a project grows. There are some good practices that make projects more maintainable, like dependency injection, however, creating all the objects at the beginning of the request could reduce the application performance. If some of the created objects are not …