How to install laravel by using composer dependency?

Zaid Jaber by Zaid Jaber
How to install laravel by using composer dependency?
In this tutorial we will learn how to install Laravel using Composer Dependency Manager.

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)

Read More

How to enable Dark Mode... omg In this article we will be taking a look on how to enable dar...
How to enable Audio des... omg In this article we will take alook on how to eale audio descri...
How to disable GPS loca... omg In this article we will take alook on how to disable the GPS lo...
How to install Signal P... omg In this article we will take alook on how to install signal pri...
How to delete Imo Accou... omg In this article we will take alook on how to delete yout Imo Ac...
How to share your locat... omg In this tutorial we will take a look on how to share your locat...