Home  >  Article  >  Backend Development  >  windows下composer怎么进行全局修改

windows下composer怎么进行全局修改

PHPz
PHPzOriginal
2016-06-06 20:22:542703browse

windows下composer怎么进行全局修改

windows下composer进行全局修改的方法:

Composer 安装目录下的 composer.bat跟composer.phar文件复制粘贴到php的安装目录

(需要跟php.exe同级),

然后修改环境变量:计算机->属性->高级系统设置->环境变量->系统变量

修改Path的值为 php.exe的绝对路径

composer.bat 内容为:

@echo OFF
:: in case DelayedExpansion is on and a path contains !
setlocal DISABLEDELAYEDEXPANSION
php "%~dp0composer.phar" %*

重启计算机然后打开运行->cmd  执行composer -v 看效果

Statement:
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