Laravel 5.6 Installation – Step by step
Laravel is one of the most popular PHP framework to build a large and long term web application. It requires requirements satisfied by homestead. But if you are not using homestead, a server should meet the following requirements.
- PHP version should be at least 7.1.3 or above
- PDO PHP Extension, OpenSSL PHP Extension, Mbstring PHP Extension, Tokenizer PHP Extension, XML PHP Extension, Ctype PHP Extension, Json PHP Extension
Composer is a must to manage dependencies in laravel. Just click here to download and install composer.
Step 02: Installing laravel framework in localhost
There are 2 ways to install laravel in localhost.
- Using laravel installer
- Using composer create-project
I mostly prefer to use composer create-project command to install laravel. It is easier than first one. But it takes higher time to complete as it every time fetch laravel git and download laravel files. Instead, laravel installer is one time install.
Just copy above code and paste it to command prompt or terminal. Then press enter. It will take 5-10 minutes to complete installation of laravel.