Not every PHP project needs a full framework. Sometimes you just need a clean way to handle a handful of API endpoints. Without pulling in Laravel or Symfony, configuration files and without a dependency manager. Just a class you can drop in and use. Over the years, working on various web applications, I’ve run into...
When thinking about functional programming, PHP is not the first thing that comes to our mind. However, it does offer some ways which allow us to implement functional approach to our code. As such, functional programming in PHP should be thought of more as an additional asset you can use to make your code more...