PHP PHP
PHP PHP

Reputation: 55

Laravel install in localhost

I am using windows 8 .I am using XAMPP.I installed XAMPP in D drive. My web root path is D:\php\htdocs. Location of php.exe file is D:\php\php. I would like to install Composer first then Laravel using composer. Could any one show me the whole process with step by step instruction ??

Upvotes: 0

Views: 5540

Answers (2)

Jeno Karthic
Jeno Karthic

Reputation: 351

  1. Add Php installation path to Environment Variable.
  2. Cd to D:\xampp\php [Php Installation path]
  3. Install composer using, php -r "readfile('https://getcomposer.org/installer');" | php
  4. Create composer.bat file, using D:\xampp\php>echo @php "%~dp0composer.phar" %*>composer.bat
  5. Check the installation using composer -V.
  6. If it works fine, install laravel using the following command. composer create-project laravel/laravel myapp --prefer-dist

Upvotes: 3

codebug
codebug

Reputation: 723

  1. Download and run the Composer Windows Installer from here: https://getcomposer.org/download/
  2. Go to web root directory D:\php\htdocs
  3. Run composer create-project laravel/laravel myapp, this will install laravel project in D:\php\htdocs\myapp directory.

Upvotes: 0

Related Questions