Php has been the foundation of the web for many years. According to www.similartechs.com, php continues to grow and mature even more.
For those who want to get into web development, php sets the lowest entry barrier when trying to become a FullStack web developer.
Php allows you to learn concepts related to OOP (Object Oriented Programming) and also the ability to talk to a database like mysql in an easy manner.
The most well known content management system were created using php. Magento, Jumla, Drupal and wordpress.
Well how do I install php in your mac ?
1- Download https://www.apachefriends.org/index.html
2- install
3- Hit start
4- Go to application
5- This will take you to the dashboard page
6- What if I want to run it on localhost ?
You will be able to see the dashboard on http://localhost:8080/dashboard/
7- Why running php on localhost ?
when trying to visit http://192.168.64.3/phpmyadmin/
you will get the following
but because I am running php on localhost now I can have access to my database
8- What if I want to run php from my terminal ?
Create a php folder in vscode
Create an index.php with echo “Welcome to PHP”;
Terminal: $php -S localhost:8000