How to install Laravel 6 Globally in Windows/Mac OS

Spread the love

In this very first blog post, I’m gonna teach you how to install Laravel Framework in your Machine. First, let’s little bit talk about the Laravel Framework. Laravel is a PHP framework. The “Top famous PHP framework out there”.

php framework comparism,is laravel worth to learn in 2019
Figure Google Trends about PHP Frameworks

As you can see in the above image Laravel is the top Framework that uses PHP. Because of that,

Laravel is a web application framework with expressive, elegant syntax. We’ve already laid the foundation — freeing you to create without sweating the small things.

Laravel was created by a Fantastic person “Taylor Otwell” in 2011 the first Release. Almost you can build anything using Laravel for Example Chat apps, CMS like POS, Social Sites like Facebook, Rest APIs, Music Store, Booking site anything that you want..

So Let’s Get into Topic HOW TO INSTALL LARAVEL 6 ON YOUR PC/MAC

In the first step, you have to go to Laravel Official Site Installation documentation. And read what they are written.

However, I’m adding the PC Requirements to this post or else you can refer Laravel official documentation.

First, you have to install Composer a dependency management software for PHP.

Server Requirements

The Laravel framework has a few system requirements. All of these requirements are satisfied by the Laravel Homestead virtual machine, so it’s highly recommended that you use Homestead as your local Laravel development environment.

However, if you are not using Homestead, you will need to make sure your server meets the following requirements:

  • PHP >= 7.2.0
  • BCMath PHP Extension
  • Ctype PHP Extension
  • JSON PHP Extension
  • Mbstring PHP Extension
  • OpenSSL PHP Extension
  • PDO PHP Extension
  • Tokenizer PHP Extension
  • XML PHP Extension

Setup on MAC OS

After you successfully install Composer on your machine. Open the MAC OS Terminal and type this command.. and press enter.

composer global require laravel/installer

Depending on your internet connection speed it will take time to finish the installation.

laravel-install-macos,install laravel 6 globally,how to install composer in mac os
laravel-install-macos,install laravel 6 globally,how to install composer in mac os

Setup on Windows PC

On windows first, you have to download Composer and install the package. After the successful installation of the composer, you can open your Command Prompt(CMD) as administrator and type this command and press enter.

composer global require laravel/installer

It’ll take some time to complete the installation depending on your Internet connection speed.

laravel 6 install on windows,laravel install mac os,how to install laravel in mac os
laravel 6 install on windows,laravel install mac os,how to install laravel in mac os

Congratulations your Laravel Development ENV is ready now in the next Post we will be creating Your first Laravel Project. Share and comment if any issues… Good Day.

Hi, I'm a software engineer from Sri Lanka who has knowledge in programming languages like Dart | PHP | Javascript |C# |Java, etc. Currently studying Computer Science at University College Coventry , London.

2 thoughts on “How to install Laravel 6 Globally in Windows/Mac OS

Leave a Reply

Your email address will not be published. Required fields are marked *