Laravel first knowledge, laravel_PHP tutorial

Source: Internet
Author: User
Laravel was first recognized by laravel. Laravel was first recognized. laravel recently saw that laravel is the most popular php framework on the internet. Today, we will take the time to get started. First, install composer to install the dependent environment laravel of composerphp-amqplib.

I recently saw that laravel is the most popular php framework on the internet. today I will take the time to get started.

First install composer

Install composer php-amqplib dependency environment curl-sS https://getcomposer.org/installer | phpmv composer. phar/usr/local/bin/composer

This is a previously installed version. the following error is prompted:

Warning: This development build of composer is over 30 days old. it is recommended to update it by running "/usr/local/bin/composer self-update" to get the latest version. execute update $/usr/local/bin/composer self-update

Then download the Laravel installer through Composer.

$ composer global require "laravel/installer=~1.1"

Make sure that ~ /. Add the composer/vendor/bin PATH to the PATH environment variable so that the laravel executable file can be found by the command line. then, you can directly use the laravel command under the command line.

After the installation is successful, you can use the command laravel new to create a newly installed Laravel under the Directory you specified. For example, laravel new blog will create a directory named blog in the current directory, which contains the newly installed Laravel and its dependent toolkit. This installation method is much faster than using Composer

Create a project

$ laravel new laravelTest

Http://v4.golaravel.com/docs/4.2/installation

Http://www.bkjia.com/PHPjc/949214.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/949214.htmlTechArticlelaravel first recognized, laravel recently saw online said laravel is the most popular php framework, today took the time to do it first. First install composer to install the dependent environment of composer php-amqplib...

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.