window/linux composer安装/卸载
packagist库: https://packagist.org/ window 安装 参考地址:https://www.kancloud.cn/thinkphp/composer/35668 1.composer下载 https://getcomposer.org ,详细地址:https://getcomposer.org/Composer-Setup.exe 2.安装 (全局安装/局部安装) 2.1双击exe文件 安装完毕 检测是否安装成功 3.使用composer 3.1建立composer文件夹(管理所有composer项目) 3.2建立composer/composer.json,切换国内镜像 { " config " : {}, " repositories " : [ { " type " : " composer " , " url " : " https://packagist.phpcomposer.com " }, { " packagist " : false } ] } 3.3 下载thinkphp文件到 tp5 (tp文件夹要为空,否则会报错) composer create-project topthink/think tp5 常见问题: 1.openssl报错 The openssl extension is required for SSL