I recently saw on the Internet that laravel is the most popular framework for PHP, so I took the time to try it out today.
First install composer
安装composer php-<span>amqplib的依赖环境 curl </span>-sS https:<span>//</span><span>getcomposer.org/installer | php</span> mv composer.phar /usr/local/bin/composer
This was installed before. Today it prompts that it needs to be updated. The error is as follows
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.<span> 执行更新 $ </span>/usr/local/bin/composer self-update
Then download the Laravel installer through Composer
$ composer <span>global</span> <span>require</span> "laravel/installer=~1.1"
Please make sure to add the ~/.composer/vendor/bin path to the PATH environment variable so that the laravel executable file can be found by the command line. In the future, you can use the laravel command directly from the command line.
After successful installation, you can use the command laravel new to create a new installation of Laravel in the directory you specify. For example, laravel new blog will create a directory called blog in the current directory, which stores the newly installed Laravel and its dependent tool packages. This installation method is much faster than installing through Composer
Create project
$ laravel <span>new</span> laravelTest
http://v4.golaravel.com/docs/4.2/installation
The above is an introduction to laravel, including some aspects. I hope it will be helpful to friends who are interested in PHP tutorials.