In our previous blogs we have given a brief introduction about Laravel Framework. Today we are going to discuss about how to install Laravel Framework with xampp server. So lets start…
How to install Laravel Framework
Step 1 − First we need Composer and you can download it from the following URL and install it on your system. It is free to download and use for download dependencies.
Step 2 − After the Composer is installed, check the installation by typing the Composer command in the command prompt as shown in the following screenshot.
Step 3 − Now write a command for download Laravel to your local machine. Create a new directory anywhere in your system for your new project. After that, move to path where you have created the new directory and type the following command there to install this framework. It will take some time.
composer create-project laravel/laravel demo-laravel
Step 4 − The above command will install Laravel in the current directory. Start the Laravel service by executing the following command.
php artisan serve
Step 5 − After executing the above command, you will see a screen as shown below −
Step 6 − Copy the underlined URL in the above screenshot and open it in the browser. If you see the following screen, it means Laravel has been installed successfully.
This 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.1.3
- OpenSSL PHP Extension
- PDO PHP Extension
- Mbstring PHP Extension
- Tokenizer PHP Extension
- XML PHP Extension
- Ctype PHP Extension
- JSON PHP Extension