Here are the steps to install Laravel for window (WAMP)
First You need to install Composer
First You need to install Composer
- Before Installing Composer Check openssl is enable or not else do the following two steps.
- Click on WAMP icon->PHP->PHP Extensions and enable: php_openssl, php_curl, php_socket.
- Click on wamp icon->Apache->Apache Modules and enable ssl_module
- Open Page https://getcomposer.org/download/
- click on link Composer-Setup.exe
- It will ask you to Save the SetUp File in your computer
- Click on the Setup file which you have downloaded, it will start the Installation Process
- while setup is running , it will ask for PHP.exe path. (C:\wamp\bin\php\php5.5.12)
- After successfully finish of installation go to Command prompt (CMD)
- Type composer , C:\> composer
- it will display all the commands related to composer with a "COMPOSER" display on screen. this means that composer is successfully installed in your system.
Now Install Laravel
- In Command prompt go to wamp folder C:\ > cd wamp\www
- Now type composer create-project --prefer-dist laravel/laravel testproject
- C:\wamp\www> composer create-project --prefer-dist laravel/laravel testproject
- where "testproject" is the name of project , you can have any other name also.
- Running the above command will install Laravel inside testproject , this process will take time.
- After successful installation you get a message of "Application key set successfully"
- Then go to testproject and type following command
- C:\wamp\www\testproject> php artisan serve . it will display following message
- Laravel development server started on http://localhost:8000/
- Now start your Wamp server in windows. And type http://localhost:8000/ in Browser.
- It will Display " Laravel 5" on the browser screen.
- To Stop artisan server press Clt + C in command prompt.