Programster's Blog

Tutorials focusing on Linux, programming, and open-source

Ubuntu - Install Laravel Installer Through Composer

Steps

sudo apt-get install php-zip
composer global require "laravel/installer"

Add composer's system-wide vendor bin directory to your path by adding this line to your .bashrc.

PATH="$HOME/.config/composer/vendor/bin:$PATH"

If you don't see it there, check $HOME/.composer/vendor/bin

Testing

You should now be able to create a new Laravel project by just using the command:

laravel new my-project

References

Last updated: 28th May 2019
First published: 4th October 2018

This blog is created by Stuart Page

I'm a freelance web developer and technology consultant based in Surrey, UK, with over 10 years experience in web development, DevOps, Linux Administration, and IT solutions.

Need support with your infrastructure or web services?

Get in touch