Home > PHP Framework > Laravel > body text

Install the Laravel installer using Composer

藏色散人
Release: 2020-09-15 09:36:44
forward
2864 people have browsed it

The following tutorial column will introduce to you how to use Composer to install the Laravel installer. I hope it will be helpful to friends in need!

Install Laravel installer using Composer:

composer global require laravel/installer
Copy after login
Install the Laravel installer using ComposerMake sure to place Composer's global vendor bin directory in your system environment variable$PATH

so that the system can find the Laravel executable file. The path to this directory varies between operating systems; some common locations are listed below:

macOS: $HOME/.composer/vendor/bin

  • Windows: %USERPROFILE%\AppData\Roaming\Composer\vendor\bin
  • GNU / Linux distribution: $HOME/.config/composer/vendor /bin or
  • $HOME/.composer/vendor/bin
  • You can also find and view Composer by running the composer global about
  • command Global installation path.

After the installation is complete, the laravel new command will create a new Laravel project in the directory you specify.

For example, laravel new blog will create a directory named

blog

and have all Laravel dependencies installed:<div class="code" style="position:relative; padding:0px; margin:0px;"><pre class="brush:php;toolbar:false">laravel new blog</pre><div class="contentsignin">Copy after login</div></div>

The above is the detailed content of Install the Laravel installer using Composer. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:learnku.com
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template