Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel 4.1 installation with composer in xampp

Tags:

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":

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

like image 408
Veshraj Joshi Avatar asked May 27 '14 05:05

Veshraj Joshi


People also ask

Can I use Composer with xampp?

Restart your xampp, extension should be enabled after that. Now we are ready to install Composer set up. 1) First go to Download Composer page and click the Composer-Setup.exe link to download Composer for Windows Installer.

Is Composer required for Laravel?

Before creating your first Laravel project, you should ensure that your local machine has PHP and Composer installed.

Can I install Laravel on Xampp?

It will run in server and store data to database and both are included in Xampp. Install the latest PHP version. Laravel depends on PHP version. So when you are going to install Laravel also check the version.


2 Answers

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:\xampp\htdocs\laravel.
  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 )
like image 102
Ravichand Avatar answered Oct 21 '22 19:10

Ravichand


Few steps to install for Windows Xampp,

  1. Download Composer here http://getcomposer.org/
  2. Download master copy here https://github.com/laravel/laravel/archive/master.zip
  3. Paste the master in xampp/htdocs/your-project-name/[paste the master copy of laravel here]
  4. Go to Command prompt : Start Menu -> Run -> Type cmd or command or Window Key + R and type cmd or command.
  5. Go the path xampp/htdocs/your-project-name/ in command prompt and type composer install.
  6. It will automatically download the necessary files.

Hope this will help.

like image 29
Vinoth Kumar Avatar answered Oct 21 '22 21:10

Vinoth Kumar