Skip to content

Installing Composer globally allows you to use the Composer command-line tool from anywhere on your system, without having to specify the path to the Composer executable every time you use it. When you install Composer globally, you add the Composer executable to your system's "PATH" environment variable, which allows you to run the "composer" com

PatrickNthiwa/how_to_install_laravel_globally_in_ubuntu_using_terminal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

# How to install laravel Globally on Ubuntu/linux

=================================================================================

Laravel hasn't been easy especially to beginners,NOTE THIS especially when it comes to configuring laravel and composer to work globally. This series Brings to all newbies how to do that,in just a few simple steps.

Introduction

Laravel uses composer to run and create projects,before proceeding with this install,please ensure you have composer install globally,is not you must first install from their official page here.

Composer is a tool for dependency management in PHP. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you.

Open your terminal by using Ctrl+Alt+T and type the following commands.

composer global require "laravel/installer"
cd ~
sudo nano .bashrc
export PATH="$PATH:$HOME/.config/composer/vendor/bin"
source ~/.bashrc
laravel new mail

Step 4 : Install missing composer packages and their dependencies

cd mail
composer install && composer update

Open the application using your favorite IDE i.e PHPstorm or code

php artisan serve

You have successfully installed and tested laravel globally.Well done. Terminate php server in terminal by pressing =>

Ctrl+C

Courtesy

PattiePHP

About

Installing Composer globally allows you to use the Composer command-line tool from anywhere on your system, without having to specify the path to the Composer executable every time you use it. When you install Composer globally, you add the Composer executable to your system's "PATH" environment variable, which allows you to run the "composer" com

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages