PHP is a processing language that allows you to add interactivity to a website.
It's loosely typed, use semicolon at the end of line, keyword aren't case sensitive, but variable are.
To run php locally, first install it's packet and Composer, a php dependency manager.
Composer will allow you to install Lavarel Valet, it is a development environment that let you run nginx in the background to test your php locally.
brew install php
brew install composer
composer global require laravel/valet
valet install
Once valet is installed, you may prepare the folder of your choice for test.
valet park
valet link
valet links
The last command will show you the url to put in your browser search bar to access the preview of your webpage.
You can also use valet share to get a ngrok URL you can share to anyone.
- home -