Install laravel via composer

藏色散人
Release: 2019-11-08 13:23:34
forward
2603 people have browsed it

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"
Copy after login

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

export PATH=$PATH:/root/.composer/vendor/bin
Copy after login

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
Copy after login

composer specifies the laravel version to install

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

* 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
Copy after login

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

Related labels:
source:segmentfault.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