Online Forum To Support Coders With Technical Assistance - Read Write Execute

Install Laravel Latest Version with Composer

Ankit Agrawal
Ankit Agrawal
Published on March 9, 2018 · 2 min read

Laravel is open source and most popular PHP frameworks for rapid web applications development. laravel provides great features like authentication techniques , Artisan , Routing , Eloquent ORM, Query Builder , Blade Templating , Security and many other features thats why its the most popular PHP framework among developers.

In this tutorial we will learn How to install Laravel latest version with composer. so keep follow the below steps .

Installation

We need composer to install laravel. If you have already installed composer then skip this step and if you want to install composer then click here and follow steps.

After the composer installation, run the following command to install laravel installer.

composer global require laravel/installer

after this command to scaffold a new application run the following command

laravel new myproject

Alternatively you can also create a new project using create-project command. to create a new application through create-project , run the following command :-

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

Our new laravel project is created and to start the server, run the following command

php artisan serve

this command will start server at http://127.0.0.1:8000. You can navigate to http://127.0.0.1:8000 or if you installed laravel into xampp then you can also navigate to http://localhost/YourProjectName/myproject/public :).

Was this article helpful?
Ankit Agrawal

Ankit Agrawal

Author & Senior Engineer at CodeExecute

Writing practical engineering guides, debugging real-world bottlenecks, and creating free tools for developer productivity.

← Previous Article How to get app id from paypal account Next Article → What is robots.txt