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:
lpe234@lpe234demacbookpro:/users/lpe234 $ brew Tap Josegonzalez/homebrew-phpwarning:already tapped! lpe234@lpe234demacbookpro:/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". 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 secondslpe234@lpe234demacbookpro:/users/lpe234 $ composer--versioncomposer version 1.0.0-alpha10 2015-04-14 21:18:51
Laravel Frame Installation
lpe234@lpe234demacbookpro:/users/lpe234 $ composer global require "laravel/installer=~1.1" Changed current Directory To/users/lpe234/.composer./composer.json have 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) 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
lpe234@lpe234demacbookpro:/users/lpe234 $ laravel--versionlaravel Installer version 1.2.2
Create a project
Lpe234@lpe234demacbookpro:/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 ~~~~~~~