In order for this work you MUST have Web Server installed on your Operating System Such as (Apache , Nginx, ... )
if you want install LAMP here is a link on "How to install LAMP Server?" : https://www.keefto.com/view/article/w72J8CIOLi1i
Now you will be able to use laravel in 2 simple steps.
Step 1: Install Composer Locally & Globally
Copy & Paste the following commands one by one:
1. php -r "copy(https://getcomposer.org/installer, composer-setup.php);"
2. php -r "if (hash_file(SHA384, composer-setup.php) === 544e09ee996cdf60ece3804abc52599c22b1f40f4323403c44d44fdfdd586475ca9813a858088ffbc1f233e9b180f061) { echo Installer verified; } else { echo Installer corrupt; unlink(composer-setup.php); } echo PHP_EOL;"
3. php composer-setup.php
4. php -r "unlink(composer-setup.php);"
For now the composer.phar is installed locally if you want to install it globally copy this last command
5. sudo mv composer.phar /usr/local/bin/compos
You are good to go.
In order to test composer just right in the terminal
Locally : php composer.phar
Globally: composer
Step 2: Install Laravel
Copy & Paste the following command on your terminal
composer create-project laravel/laravel <project-name>
Now you have a fresh laravel installtion
have fun
follow me
https://www.keefto.com/accounts/zaidjaber
Category: How To
Comments (0)