- 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
- BCMath PHP Extension
First of all, we need WAMP, so we can download it form the official page:
I have created a tutorial for installing Wamp Server. You can find it here
Laravel utilizes composer to manage its dependencies. So after we have downloaded and install Wamp server, we need to install Composer.
Composer is a tool for dependency management in PHP. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you. In windows we can install it easily by going to the official page and downloading the installer.
After installing composer, we can open a Windows terminal and write composer for executing the command:
Install Laravel Framework
We are prepared to install and configure a Laravel Framework. First of all, we have to navigate to www folder to install it. Run the following command to install:
laravel new blog
Once installed, the laravel new command will make a new Laravel installation in the registry you defined. For example, laravel new blog will make an index named blog. It will contain a fresh Laravel installation with all of the Laravel’s dependencies already installed.
Via Composer Create-Project
Alternatively, you may also install Laravel by using the Composer create-project command in your terminal:
composer create-project –prefer-dist laravel/laravel blog
When we had finished the installation of the framework, it will create the following directory:
After creating the project, start the Wamp server. Open the windows terminal then redirect to the installation folder. For example (below code will redirect me to the blog folder
that is my project folder ):
This will redirect the terminal to the folder where our blog project has been installed.
Run the project by following command.
php artisan serve
This command will start a development server.
Finally go to your favourite web-browser and type url http://127.0.0.1:8000. It will run your project on the web browser.
In this article we had learn to install laravel on localhost using wamp server. Now, you can write your own code to build your own laravel project. If you had like my tutorial then don’t forget to share it with your friend.