Environment: Mac OS 10.10.5; PHP 5.6.9;
Document reference: http://www.golaravel.com/
Package management: Python typically uses PIP
Laravel uses Composer (Composer Chinese) to manage its own dependency packages.
Installation:
[Email protected]:/users/lpe234 $ brew tap josegonzalez/homebrew-phpwarning: already tapped! [email protected]:/users/lpe234 $ brew install josegonzalez/php/composer==> installing composer from josegonzalez/homebrew-php==> downloading http:// getcomposer.org/download/1.0.0-alpha10/composer.phar########################################################## ############## 100.0%==> caveatsverify your installation by running: "Composer --version". you can read more about composer and packagist by running: "Brew home composer". ==> summary?? /usr/local/cellar/composer/1.0.0-alpha10: 3 files, 1.0m, built in 58 seconds[email protected]:/Users/lpe234 $ composer --versionComposer Version 1.0.0-aLpha10 2015-04-14 21:18:51
Laravel Frame Installation
[email protected]:/users/lpe234 $ composer global require "laravel/ installer=~1.1 "changed current directory to /users/lpe234/.composer./composer.json has been createdloading composer repositories with package informationupdating dependencies (Including require-dev) - Installing symfony/process (v2.7.6) Downloading: 100% - Installing symfony/console (v2.7.6) Downloading: 100% - Installing guzzlehttp/promises (1.0.3) downloading: 100% - installing psr/http-message (1.0) downloading: 100% - installing guzzlehttp/psr7 (1.2.1) downloading: 100% - installing guzzlehttp/guzzle (6.1.0)  &NBsp; downloading: 100% - installing laravel/installer (v1.2.2) downloading: 100%symfony/console suggests installing symfony/ event-dispatcher () symfony/console suggests installing psr/log (For using The console logger) Writing lock filegenerating autoload files
After the installation is complete, configure the environment variables.
Export path= $PATH: ~/.composer/vendor/bin
Then verify that it is successful. Restart Terminal
[Email protected]:/users/lpe234 $ laravel--versionlaravel Installer version 1.2.2
Create a project
[Email protected]:/users/lpe234/phpstormprojects $ laravel New blogcrafting application ... Generating optimized class Loaderapplication key [Nhglywnwojkrsw4elhlghxy2ftalzmbi] set successfully. Application ready! Build something amazing.
Abnormal:
Runtimeexceptionin encryptionserviceprovider.php Line 29:
No supported Encrypter found. The cipher and/or key length is invalid.
PHP Artisan Key:generate
The 32-bit key is then generated. Put the app_key under the config/app.php; and. Env in App_key
After PHP artisan serve error is still ~~~~~~~
Laravel Framework Learning--Installation