Home  >  Article  >  Development Tools  >  Install laravel via composer

Install laravel via composer

藏色散人
藏色散人forward
2019-11-08 13:23:342546browse

Install laravel via composer

The following composer commandtutorial column will introduce to you how to install laravel through composer. I hope it will help you if you need it. Friends help!

Installing laravel

There are two ways

Through the Laravel installation tool

composer global require "laravel/installer=~1.1"

After installation, ~/.composer/vendor/bin is added to PATH

export PATH=$PATH:/root/.composer/vendor/bin

laravel new command to create a newly installed Laravel application, for example: laravel new blog

Through Composer Create-Project

composer create-project laravel/laravel myproject --prefer-dist

composer specifies the laravel version to install

composer create-project laravel/laravel=5.2.* --prefer-dist

* Branch for a specific version

If you need the latest master version of composer laravel/laravel:

composer create-project laravel/laravel=dev-master laravel-dev-master

The above is the detailed content of Install laravel via composer. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:segmentfault.com. If there is any infringement, please contact admin@php.cn delete