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:

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 ~~~~~~~

  • Related Article

    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.