Install Laravel 10, 9, 8 with Composer in macOS, Ubuntu, Windows

Install laravel via composer on mac, ubuntu Windows; In this tutorial, you will learn how to Install Laravel Framework on windows 7/8/10/11 system, mac and ubuntu step by step and create a first laravel application.

Laravel is free open source “PHP framework” based on MVC design pattern .
It is created by Taylor Otwell. Laravel provides expressive and elegant syntax that helps in creating a wonderful web application easily and quickly.

Install Laravel 10, 9, 8 with Composer in macOS, Ubuntu, Windows

Let’s use the followng steps to install and run laravel application in windows 11/10, mac and ubuntu via composer:

  • Download and Install Composer
  • System Requirement
  • Create Project
  • Start Development Server
  • Conclusion

Note : If you install laravel in ubuntu system. Must Read, How to install composer in ubuntu Click Here

Download and Install Composer

Before install laravel on windows. first of download composer on windows system. If you already composer download / installed Composer.  go to STEP 2, Otherwise follow the steps.

Click  Download Composer from: www.getcomposer.org

install composer

Run the setup and Install Composer.

install composer

Next the window will display the resume of the settings, click “Install” to continue.

install composer

If you have any proxy url enter here, don’t know leave it click next

install composer
install composer

The setup wizard will download the required files from getcomposer.org . Your installation will be completed.

install composer

Composer installed successfully. Click to finish button and move to next step.

install composer
install composer

Open command prompt & type cd C:\xampp\htdocs

install composer

Server Requirements

The Laravel framework has a few system requirements. Before we will install laravel on windows, read some system requirements.

  • PHP >= 8.x
  • OpenSSL PHP Extension
  • PDO PHP Extension
  • Mbstring PHP Extension
  • Tokenizer PHP Extension
  • XML PHP Extension
  • Ctype PHP Extension
  • JSON PHP Extension
  • BCMath PHP Extension

Install Laravel

Type the command In command prompt => composer create-project laravel/laravel Project Name. It will install laravel fresh setup on your system.

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

Wait for Laravel install on windows system.

install laravel

After successfully install laravel setup. If your using ubuntu machine. open your terminal and go to your project root directory (
using the command cd blog ) and type the below command in command prompt :

sudo chmod  -R 777 storage

sudo chmod -R 777 bootstrap

Start Development Server

In this step to use the php artisan serve command .it will start your server locally

php artisan serve

If you want to run the project diffrent port so use this command

php artisan serve --port=8080 

You have successfully install laravel on windows , Now Go to the browser and hit the

URL : http://localhost:8000/blog

If you are not run php artisan server command , direct go to your browser and type the url

URL : http://localhost/blog/public/

Laravel  Installation Process completed go to the browser and hit URL. http://localhost/project-name /public/, you will be see.

install laravel

Conclusion

You have successfully installed the latest version laravel on windows, mac and ubuntu with composer.

Recommended Laravel Tutorials

If you have any questions or thoughts to share, use the comment form below to reach us.

AuthorAdmin

My name is Devendra Dode. I am a full-stack developer, entrepreneur, and owner of Tutsmake.com. I like writing tutorials and tips that can help other developers. I share tutorials of PHP, Python, Javascript, JQuery, Laravel, Livewire, Codeigniter, Node JS, Express JS, Vue JS, Angular JS, React Js, MySQL, MongoDB, REST APIs, Windows, Xampp, Linux, Ubuntu, Amazon AWS, Composer, SEO, WordPress, SSL and Bootstrap from a starting stage. As well as demo example.

3 replies to Install Laravel 10, 9, 8 with Composer in macOS, Ubuntu, Windows

  1. Nice article

  2. Thanks For This post…
    Nice tutorial for beginners and experience developers to install laravel

  3. It is helpful!
    Thanks!

Leave a Reply

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