Posts tagged #api

Don't bring your own HTTP client

If you are developing a library that needs to make HTTP requests, here's how not to make it difficult for your consumers.

Body parser middleware that has your back

If you've ever implemented an HTTP API in PHP, you probably know that there's one thing you have to do over and over and over: parse the request body and validate the resulting structure. Now that we have PSR-15, let's use a middleware for that!

The frameworkless application

There's a new buzzword on the PHP block: frameworkless. The activities of PHP communities last year made it possible to build robust applications, uniquely composed of little bits, without relying on a big framework. Let's find out how they work and if it's a good approach.