Category: league

PHP Fractal – Make Your API’s JSON Pretty, Always!

If you’ve built an API before, I’ll bet you’re used to dumping data directly as a response. It may not be harmful if done right, but there are practical alternatives that can help solve this small problem. One of the available solutions is Fractal. It allows us to create a new transformation layer for...

Build a Superfast PHP Server in Minutes with Icicle

Event-based programming is a strange topic for PHP developers. In a language as procedural; events are little more than function calls. Nothing happens between events, and all meaningful code is still blocking. Languages like JavaScript show us what PHP could be like if event loops were at the center. Some folks have t...