What’s new in PHP 7.4

PHP 7.4 was released on November 28, 2019 and it’s the last version before PHP 8. New features PHP 7.4 comes with a remarkable amount of new features. The following a list of all new features. Arrow functions Arrow functions, also called “short closures”, allow for less verbose one-liner functions. There are a few notes about…

Read More

Install Nginx + PHP + MySQL on Mac Os in 2020

This tutorial shows how to install Nginx + PHP + MySQL on Mac OS Catalina. It’s very straightforward process and doesn’t takes you more than 10 to 15 minutes. Install PHP First of all, ensure that brew brew is up-to-date and then install latest php 7.4 version. To locate your ini files type the following…

Read More

SOLID principles in PHP

SOLID Principles is the rules that avoid bad design and have a clear concept for developing software in a proper way.

With the bad software design, the code can become inflexible and small changes can result in bugs. For these reasons, developers should follow SOLID Principles.

Read More

How to change PHP version in shell

If you have multiple versions of PHP and you want to change PHP version in shell then run the following command:

This will give you a list of all PHP versions installed:

Find version that you need (i.e. /usr/bin/php71). Then open .bashrc (or .bash_profile) and add the following line to the end of…

Read More

Installing Nginx + PHP-FPM + MySQL on OS X

Setting up working environment is the first step you need to do. This will be your local web server for programming in OS X with PHP, Nginx and MySQL (also known as LEMP). Let’s make it as ease as possible 😉   What we will do Install xcode (for license) and brew package manager (as…

Read More