PHP 7.1 - 9 New Features you need to know

PHP 7.1, the new minor version of PHP is finally here, with a number of new features, changes, and bug fixes. In this article, let's look at some of the awesome features in PHP 7.1. Like, iterable pseudo type Closure from callable Square bracket...

My Docker Setup - Ubuntu, php7-fpm, Nginx and MariaDB

When we work as a team, it's insanely difficult for all of us to have the same environment. Some devs may be working on Linux machines whereas others working on Mac/Windows machines. Some dependencies may work on some machines, while others may not...

Set up OAuth2 server using Laravel Passport

Laravel is one of my favorite frameworks, not because it is the best but it provides far better developer experience compared to any other frameworks. Laravel 5.3 comes with a handful of new features like Passport, Scout, Notifications, etc. that...

Knapsack - Collection Pipeline for Fun and Profit!

PHP has this powerful data structure called array, which we can use to handle any collection of data. We can then traverse them using for or foreach and process the data. The introduction of Closures in PHP 5.3 made the collection processing a bit...

Export selected rows from MySQL table

As a programmer or system admin, taking database backup is an inevitable task that we have to do. mysqldump is the de-facto tool for exporting data from MySQL server. It allows us to easily export databases or selected tables very easily. For...

Stress-free refactoring with Scientist

I love refactoring. It is highly risky and challenging as I might break the production system and loose business. At the same time, it's a rewarding experience to improve the code which is less performing or buggy. For the past couple of months, I...

Setting up Let's Encrypt SSL in Ubuntu 14.04 with Nginx

Or in other words, Zero to SSL in three minutes I was really excited about the Let's Encrypt free ssl service since their first announcement. But I never tried to install it, mainly as I found the documentation a bit difficult to follow. Today,...

Installing PHP 7 on Mac using Homebrew

Here is a quick way to install PHP7 on Mac, in three easy steps. brew update brew install homebrew/php/php70 export PATH="$(brew --prefix homebrew/php/php70)/bin:$PATH" Alternatively you can add export PATH="$(brew --prefix...

Automatic construction injection in Slim 3

In the previous blog post we have discussed how to replace the default Pimple Container with Aura.DI in Slim framework 3. Aura.DI gives us more flexibility in terms of managing dependencies. We saw one most useful feature in Aura.DI, Inheritance of...