-
Managing PUT requests with file uploads in psr-7 and middleware PHP applications
06 March 2017 —
Comments It has been a long time since I first realized that handling file uploads in non-POST requests (like PUT) wasn't an easy task. One could assume the $_FILES array should be populated regardless the HTTP verb, but actually, PHP doesn't do it on its own. After a long time wanting to find a solution to …
-
Run PHPUnit tests inside a docker container from PhpStorm
01 February 2017 —
Comments Docker is, without any doubt, the trending tool these days. Everybody wants to use it, because it is very useful, allowing to easily generate development environments for any kind of application. A couple months ago I started working with docker myself (it has taken me a while, I know), and now I ca…
-
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…