1.安装composerphp
2.cmd命令行中输入:composer global require "fxp/composer-asset-plugin:1.3.1"html
出错了:stream_is_local():Unable to find the wrapper "hhtps" - did you forget to enable it when you configured PHP?json
查找资料,大多数是说因为php.ini 中的open_ssl 没有开启,可是个人已经开启了,而且在phpinfo()中也能看到open_ssl开启,对比别人的错误“https”和个人错误"hhtps"仍是不同的,分析必定是设置某个路径的时候把https 写成了hhtps,记忆中只有对composer的镜像路径进行过修改。app
3.在http://www.cnblogs.com/mr-amazing/p/6085890.html 中找到修改composer [home]目录配置文件config.json 的方法:composer config -l -g 。composer
4.打开config.json, 里面的镜像路径果真是hhtps开头,改为https://packagist.phpcomposer.com 便可, 再执行composer global require "fxp/composer-asset-plugin:1.3.1" ,成功!ui