二、初始化项目,生成composer.json文件
2.1 步骤
2.2 步骤解释
三、添加自动加载
四、构建项目
4.1 新建uploadfile/src/UploadFile.php
4.2 测试
git clone git@github.com:guanguans/uploadfile.git
cd uploadfile
二、初始化项目,生成composer.json文件
2.1 步骤
yes
2.2 步骤解释
yzm@Alert MINGW64 /i/phpstudy/WWW/uploadfile
composer init
Welcome to the Composer
the version constraint to require (or leave blank to use the latest version): >5.4.0
// 如需多个,则重复以上两个步骤
allowExts > [], // 允许上传的文件后缀 留空不作后缀检查
allowTypes > [], // 允许上传的文件类型 留空不做检查