Inspecting Filesystem Using SPL

The Standard PHP Library (SPL) is a collection of interfaces and classes that are meant to solve common problems. SPL had been introduced in 2005 with PHP 5.0.0. SPL doesn’t require any additional libraries; it comes by default with the PHP installation. In this post, I’ll be showing you some iterators that are used to …

Late Static Binding Explained

PHP 5.3 came out with a fantastic OO feature called Late Static Binding, a fancy term for a simple concept. If you take a look at some of the modern PHP frameworks/libraries you’ll see that static method is used a lot in their classes. In this post, I’ll be showing you the differences between self …

JWT with Laravel

A few weeks ago, I wanted to use JSON Web Token into one of my Laravel projects. After a bit of research, I found some composer packages, but I was thinking why do I need a package for such a simple thing? To be honest, I’m not a big fan of using composer packages for …