: This article mainly introduces laravel's first knowledge. For more information about PHP tutorials, see. 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
The above introduces laravel's first knowledge, including some content, and hopes to help those who are interested in PHP tutorials.