How to use composer to install Laravel

- Advertisment -
- Advertisement -

Laravel is a web framework that is based on PHP and can be easily installed & use on Windows, Linux or macOS using PHP Composer, Dependency Management tool for web development.

This is a simple PHP web framework that helps in building web apps without messy codes and highly documented which mitigates the hurdles of developers very much. However, its syntax is elegant, and many methods can be deduced directly without looking at the documentation.

Laravel is completely open-source. All code is available on Github, and you are welcome to contribute your own power. Furthermore, Laravel’s package repository is quite mature, and it can easily help you install bundles into your application. You can choose to download a bundle and copy it to the bundle’s directory or install it automatically through the command line tool called “Artisan”.

Laravel installation requirements:

  • PHP >= 5.6.4
  • OpenSSL PHP Extension
  • PDO PHP Extension
  • Mbstring PHP Extension
  • Tokenizer PHP Extension
  • XML PHP Extension

Use Composer to install Laravel web framework

In this tutorial, we will see the steps of Composer to install Laravel on any system running on Windows, Linux or macOS, however, make sure the PHP and Composer are installed on them.

Laravel installer

Command to install Larvel using composer globally for the system.

composer global require laravel/installer

Let’s initialize a Laravel project using composer:

composer create-project laravel/laravel demoh2s --prefer-dist

You can change the demoh2s with your project name.

Now, let’s use the integrated web server in the project to see the Laravel demo page.

Switch to the directory fo the project you have created, for example here we have demoh2s

cd demoh2s

Now, run the command line tool artisan us the PHP command:

php artisan serve

Now, open the browser and point it to

If everything goes well, you will see the demo page of Laravel

Use Composer to install Laravel web framework

H2S Media Team
H2S is a group of tech enthusiasts those are passionate about latest technology developments. They always like to solve own technical problems and share the same solution with others through this Website.


Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Latest Posts

How to create Ubuntu 20.04 bootable USB drive on Windows

If you are Ubuntu's fan and want to try out its latest Focal Fossa 20.04 LTS Linux distro, then...

Different common BSOD (Blue screen of death) on Windows

Here are some common BSOD (Blue screen of death) that you might come across on a Windows 10/8/7 computer,...

How to get started with, and use Bixby Routines on a modern Samsung

The modern Samsung handsets come with a number of new features and one of the most useful features that...

How to install Docker-CE on Ubuntu 20.04 LTS Focal Fossa

Are you using Ubuntu 20.04 LTS and want to install Docker Composer to start with container-based virtual machines then...
- Advertisement -

How to change screen brightness in Ubuntu using command terminal

Do you want to control or reduce the brightness of the Ubuntu 18.04/19.04/20.04 or in earlier versions of this...

How to install VirtualBox on Ubuntu 20.04 Focal Fossa

The final launch of the Ubuntu 20.04 Focal Fossa is around the corner however the beta builds are available...

- Advertisment -
- Advertisement -

You might also likeRELATED
Recommended to you