Home  >  Article  >  Backend Development  >  First introduction to laravel, laravel_PHP tutorial

First introduction to laravel, laravel_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 10:08:51913browse

First time meeting laravel, laravel

I recently saw on the Internet that laravel is the most popular framework in 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 via 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

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/949214.htmlTechArticleFirst time meeting laravel, laravel. Recently I saw on the Internet that laravel is the most popular framework in PHP. I took the time to do it first today. Once done. First install composer and install composer php-amqplib's dependency environment...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn