0
4

1 回答 1

0

Ok so a lot of research and try and errors I figured out a way that worked for me. I am using Windows 8.1.

  1. I have installed php 7 in c:\php.

Note : Download php from http://php.net/downloads.php. Download Non Thread Safe version in zip format and extract it to the desired folder (I extracted in C:\php).

  1. After that I have installed composer using composer installer and did nothing after that, like setting PATH on environment setting, Installer will do it for you.

Download Composer Installer from https://getcomposer.org/download/.

  1. After that I have downloaded laravel from github and exctrated to the desired project folder.

Download Laravel latest version from https://github.com/laravel/laravel

  1. After that I ran "composer self-update"command.
  2. After that I ran "composer update"command.
  3. After that I ran "composer global require “laravel/installer”"command. This command will install Laravel Installer.

Now I can go to the project folder directory and run "laravel new myProjectName" command to create new laravel project.

于 2017-11-26T16:42:59.640 回答