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 For while now most of companies are going forward with enabling...
How to create a bootabl... omg In this article we will take a look on how to create a bootable...
lHow to install TablePl... omg In this article we will take alook on new Database IDE called T...
How to enable dark mode... omg In this article we will take a look on how to enable dark mode ...
How to Clear Viewing Ac... omg In this article we will take a look on how to clear your viewin...
Now to install Atom tex... omg In this tutorial we will take alook on how to install Atom Text...