Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
281 views
in Technique[技术] by (71.8m points)

php - Laravel 4.1 installation with composer in xampp

I wanted to try out the Laravel 4.1 but unfortunately got stuck at the very beginning. When i try to install it using composer as mentioned in the Laravel 4.1 documentation, i get the following error while running "composer create-project laravel/laravel laravelProject --prefer-dist":

[ComposerDownloaderTransportException] The "http://packagist.org/p/illuminate/filesystem$a5912ddb14272c0efa16e821a25bb68e39d3bac736aee7de62cb5641fd7133e3.json" file could not be downloaded: failed to open stream: HTTP request failed!

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Four simple steps to install laravel on windows machine:

  1. After installing xampp, just download composer from https://getcomposer.org/download/ and install it.
  2. goto path C:/xampp/htdocs and create a folder as laravel, redirect to laravel using cmd prompt as cd c:xampphtdocslaravel.
  3. then simply type this command to create a first project composer create-project laravel/laravel first-project --prefer-dist Replace first-project with your project name (it takes a few minutes to install)
  4. then redirect to localhost/laravel/first-project/public/ and now you can see the Laravel logo along with a quick message saying “You have arrived.” ( always use a public folder to access project )

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...