Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing Laravel 4.1 with Laravel Installer

I'm trying to install Laravel 4.1 using the Laravel installer but the docs isn't very descriptive.

Can someone please give a step by step guide on how to do this? I'm completely new to Laravel and PHP frameworks as a whole.

I'm on a Windows 7 machine running WAMP 2.2.

like image 571
Isuru Avatar asked Feb 15 '14 09:02

Isuru


3 Answers

This information/answer isn't quite up to date anymore. The instructions here will install the latest version which is no longer 4.1. For those still wanting to install Laravel 4.1 (despite 4.2+ being out), use the following command.

composer create-project laravel/laravel project_name 4.1

You could replace the 4.1 with 4.0 or 4.2 depending on your situation.

Laravel 4.1 is handy if you aren't in control of your PHP version and you're stuck back on 5.3.7

Laravel 4.2 requires PHP 5.4.

When upgrading a project to a newer version of Laravel, be sure to review the release notes

like image 90
Fusty Avatar answered Oct 06 '22 01:10

Fusty


Installing Laravel means simply downloading Laravel Application bootstrap, which has to be placed in your project directory. That application has a composer.json file, which will, after you run composer install command, download all necessary dependencies (including core framework).

That is one way. Another preferred way is directly through:

composer create-project laravel/laravel project_name

In both cases, you need to have composer installed on your machine. Composer is a modern PHP package manager, which has a ton of benefits (autoloading, custom commands...).

There is really no need for two downvotes, especially when this guy was reading documentation, which he couldn't understand. We were all installing Laravel for the first time.

like image 30
Miroslav Trninic Avatar answered Oct 06 '22 00:10

Miroslav Trninic


If you want install laravel via Laravel Installer use this method:
First, open up command line. then enter:

composer global require "laravel/installer=~1.1"

Now go to:

C:\Users\ {User Name} \AppData\Roaming\Composer\vendor

Copy and paste vendor in your destination folder.
Now in your destination folder hold the shift key down and press right click and in opened navigation menu click on "open command window here" then enter command below:

laravel new your_project_destination

Ex:

laravel new laraveltest
like image 24
Hamid Parchami Avatar answered Oct 05 '22 23:10

Hamid Parchami