Laravel Framework Learning--Installation

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.