The latest additions to the middleware stack is a middleware for handling HTTP Access Control (CORS) requests as well as a middleware for setting up rate limits on either the entire api or specific endpoints, or a combination of the two.
In the last few days I've added two new serializers packages. This makes it really easy to add YAML and XML support to your API. Besides the two serializers a Redis Cache Provider package is also available. Redis is one of the fastest options available and it's rich features makes it a popular choice.
It's with great pleasure I'm able to introduce the second version of the Phapi Framework. Soon after the first version was released I realized that I wanted to make Phapi PSR-7 compliant and use an middleware driven architecture. Version 1 did support middleware but the core application was no where near an architecture that heavily relied on middleware.