Software development, agile methodologies and open source projects.
Tag Archive — "middleware"
- How to customize 'not found' and 'method not allowed' response prototypes in Zend expressive 2
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.
- My thoughts after migrating some projects to Zend Expressive 2
The day Zend Expressive 2 was released I was super excited. I have been using it a lot for both professional and personal projects, so I'm quite used to it.
Since I've been using it in many projects, being able to update all of them to version 2 was a challenge, but I can say, I...
- Managing PUT requests with file uploads in psr-7 and middleware PHP applications
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 ...
- My first approach to Zend Expressive
One of the trending topics in the PHP world nowadays is the one about microframeworks. It started some years ago with Slim and Silex, but recently it has been an explossion of new microframeworks.
First, Slim's team announced the third version of its own framework, which impleme...