This tutorial I would like to show you how to install WampServer, Composer and Laravel 5.5 framework on windows.
Please go to download WAMP Server 32 bit or 64 bit and set it up. And then start its service.
Suppose that you are running WAMP on port 80, and your installation is in C:\wamp64\www
.
Make sure that the version of php is >= 7 by going to command prompt (CMD) and run this command
php -v
Note: If you see error like "... is not recognized as internal and external command,...", please close your command prompt, go to add PHP path in system variable, then go back to the command prompt and do it again.
How to add PHP path in system variable?
Right click on My Computer shortcut -> Properties -> Advanced System Settings-> Environment Variables -> double click on path in System Variables -> append your php path there (C:\wamp64\bin\php\php7.0.10)
Please download and install composer https://getcomposer.org/Composer-Setup.exe. Then go to command prompt (CMD), and run this command
composer
If you see the screen like below, it means the composer is working fine for the laravel installation.
Note: If you see error like "... is not recognized as internal and external command,...", please close your command prompt, go to add composer path in system variable, then go back to the command prompt and do it again.
How to add Composer path in system variable?
Right click on My Computer shortcut -> Properties -> Advanced System Settings-> Environment Variables -> double click on path in System Variables -> append your composer path there (C:\ProgramData\ComposerSetup\bin)
Suppose that we are going to create a laravel project called "demo" in C:\wamp64\www
.
Go to command prompt (CMD), navigate to C:\wamp64\www
, then type this command
composer create-project --prefer-dist laravel/laravel demo
If you see the screen like below, it means your laravel project was successfully installed.
Once the installation is done, please go to browser and type http://localhost/demo/public.
Hope you can do it.
Create ajax CRUD, search, sort and pagination with Laravel 5.5
How to create CRUD, search, sort and pagination with Laravel 5.5