ubuntu 使用composer 安装 laravel

WBOY
Release: 2016-06-23 13:34:46
Original
827 people have browsed it

1.先安装composer

(The recommended path, not needed.)

cd /usr/local/bin
Copy after login

(install)

 sudo curl -s https://getcomposer.org/installer | sudo php
Copy after login

(Add execute permissions.)

sudo chmod a+x composer.phar
Copy after login

(This step is not necessary. If needed, you can use this script to update Composer.)

sudo composer.phar self-update
Copy after login
mv   composer.phar /usr/bin/composer

要有这一步,否则不能直接使用composer命令

  进入到www目录   

composer create-project laravel/laravel --prefer-dist
Copy after login

source:php.cn
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