How to Install Laravel

This tutorial shows how to install laravel. It is a a two step easy process.

1. First Install composer, I went with Windows Install option (instead of command prompt)

2.Then install Laravel and all its dependencies from command prompt. You will have to do this for every project rather than install once and be done with it. If you want to install Laravel on C:test project, you would  issue the following command from c: prompt. It will create test folder by itself.


composer create-project laravel/laravel test --prefer-dist

Following is the complete log of my particular installation


C:>composer create-project laravel/laravel test --prefer-dist
Installing laravel/laravel (v5.1.4)
  - Installing laravel/laravel (v5.1.4)
    Downloading: 100%

Created project in test
> php -r "copy('.env.example', '.env');"
Loading composer repositories with package information
Installing dependencies (including require-dev)
  - Installing vlucas/phpdotenv (v1.1.1)
    Downloading: 100%

  - Installing symfony/var-dumper (v2.7.1)
    Downloading: 100%

  - Installing symfony/translation (v2.7.1)
    Downloading: 100%

  - Installing symfony/routing (v2.7.1)
    Downloading: 100%

  - Installing symfony/process (v2.7.1)
    Downloading: 100%

  - Installing psr/log (1.0.0)
    Downloading: 100%

  - Installing symfony/debug (v2.7.1)
    Downloading: 100%

  - Installing symfony/http-foundation (v2.7.1)
    Downloading: 100%

  - Installing symfony/event-dispatcher (v2.7.1)
    Downloading: 100%

  - Installing symfony/http-kernel (v2.7.1)
    Downloading: 100%

  - Installing symfony/finder (v2.7.1)
    Downloading: 100%

  - Installing symfony/dom-crawler (v2.7.1)
    Downloading: 100%

  - Installing symfony/css-selector (v2.7.1)
    Downloading: 100%

  - Installing symfony/console (v2.7.1)
    Downloading: 100%

  - Installing swiftmailer/swiftmailer (v5.4.1)
    Downloading: 100%

  - Installing jakub-onderka/php-console-color (0.1)
    Downloading: 100%

  - Installing jakub-onderka/php-console-highlighter (v0.3.2)
    Downloading: 100%

  - Installing dnoegel/php-xdg-base-dir (0.1)
    Downloading: 100%

  - Installing nikic/php-parser (v1.3.0)
    Downloading: 100%

  - Installing psy/psysh (v0.4.4)
    Downloading: 100%

  - Installing nesbot/carbon (1.20.0)
    Downloading: 100%

  - Installing mtdowling/cron-expression (v1.0.4)
    Downloading: 100%

  - Installing monolog/monolog (1.14.0)
    Downloading: 100%

  - Installing league/flysystem (1.0.4)
    Downloading: 100%

  - Installing jeremeamia/superclosure (2.1.0)
    Downloading: 100%

  - Installing doctrine/inflector (v1.0.1)
    Downloading: 100%

  - Installing danielstjules/stringy (1.9.0)
    Downloading: 100%

  - Installing classpreloader/classpreloader (2.0.0)
    Downloading: 100%

  - Installing laravel/framework (v5.1.6)
    Downloading: 100%

  - Installing fzaninotto/faker (v1.5.0)
    Downloading: 100%

  - Installing hamcrest/hamcrest-php (v1.2.2)
    Downloading: 100%

  - Installing mockery/mockery (0.9.4)
    Downloading: 100%
    Downloading: 100%
    Downloading: 100%
    Failed to download mockery/mockery from dist: The "https://api.github.com/re
pos/padraic/mockery/zipball/70bba85e4aabc9449626651f48b9018ede04f86b" file could
 not be downloaded: php_network_getaddresses: getaddrinfo failed: This is usuall
y a temporary error during hostname resolution and means that the local server d
id not receive a response from an authoritative server.
failed to open stream: php_network_getaddresses: getaddrinfo failed: This is usu
ally a temporary error during hostname resolution and means that the local serve
r did not receive a response from an authoritative server.
    Now trying to download from source
  - Installing mockery/mockery (0.9.4)
    Cloning 70bba85e4aabc9449626651f48b9018ede04f86b



  [RuntimeException]
  Failed to clone git@github.com:padraic/mockery.git, git was not found, chec
  k that it is installed and in your PATH env.
  'git' is not recognized as an internal or external command,
  operable program or batch file.



create-project [-s|--stability="..."] [--prefer-source] [--prefer-dist] [--repos
itory-url="..."] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--n
o-scripts] [--no-progress] [--keep-vcs] [--no-install] [--ignore-platform-reqs]
[package] [directory] [version]



C:>

This entry was posted in Uncategorized and tagged . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s