标签:用户 cal sudo config reg har family set 二进制
php -r "readfile(‘https://getcomposer.org/installer‘);" | php
可以通过--install-dir
选项指定 Composer 的安装目录 (绝对或相对路径)
curl -sS https://getcomposer.org/installer | php -- --install-dir=bin
sudo mv composer.phar /usr/local/bin/composer
@php "%~dp0composer.phar" %*
D:\develop\wamp64\www>php composer.phar ______ / ____/___ ____ ___ ____ ____ ________ _____ / / / __ \/ __ `__ \/ __ \/ __ \/ ___/ _ \/ ___/ / /___/ /_/ / / / / / / /_/ / /_/ (__ ) __/ / \____/\____/_/ /_/ /_/ .___/\____/____/\___/_/ /_/ Composer version 1.7.3 2018-11-01 10:05:06
composer config -g repo.packagist
composer config -g repo.packagist composer https://packagist.phpcomposer.com
composer config repo.packagist composer https://packagist.phpcomposer.com
{ "repositories": { "packagist": { "type": "composer", "url": "https://packagist.phpcomposer.com" } } }
composer.phar search monolog
composer search laravel/laravel
composer show --all laravel/laravel
composer show --all monolog/monolog
{ "repositories": { "packagist": { "type": "composer", "url": "https://packagist.phpcomposer.com" } }, "require": { "monolog/monolog": "1.24.*" } }
composer install
composer update
compoer create-project lavarel/laravel --prefer-dist [别名]
composer create-project --prefer-dist laravel/laravel blog
composer global require "laravel/installer"
laravel new blog //将会在当前目录下创建一个叫 blog的目录,此目录里面存放着新安装的 Laravel 和代码依赖。这个方法的安装速度比通过 Composer 安装要快上许多
标签:用户 cal sudo config reg har family set 二进制
原文地址:https://www.cnblogs.com/zhujingxiu/p/10021715.html