This article will guide you how you can Install Laravel on your system . Before installing laravel you must ensure that the php version of your server is compatible with the laravel. Following are some of the system requiremens for the laravel to meet so that it can be installed on your system.
- PHP >= 7.1.3
- OpenSSL PHP Extension
- PDO PHP Extension
- Mbstring PHP Extension
- Tokenizer PHP Extension
- XML PHP Extension
- Ctype PHP Extension
- JSON PHP Extension
If your system has all the above requirements fulfilled then you can easily install laravel.Now let’s start and See step by step how you can install laravel.
How To Install Laravel Step By Step Guide
#Step-1 Install Composer
Laravel uses composer to manage his dependencies so before doing anything make sure you have composer installed on your machine . If this is your first time installing laravel then open the command promt by pressing Ctrl + R and type cmd . After that go to your htdocs folder and run the following command.
composer global require "laravel/installer"
#Step-2 Create New Project In laravel
After installing laravel you can the following command to create a new project with all the necessary files and core files being installed.
laravel new blog
where blog will be the name of your project folder to be created. Some times this command will not create the vendor folder necessary for the laravel to run so you can use composer to create new project by using the following command
composer create-project --prefer-dist laravel/laravel name_of_project
#Step-3 Local Development Server
Now you can use your local php server to run the freshly installed laravel on your local system.you may use the
serve Artisan command. This command will start a development server at
php artisan serve
And Boom that’s it you have freshly installed laravel up and running on your server.You can able to see the following screen on your system.