Blogger Information
Blog 20
fans 0
comment 0
visits 8163
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
composer常用指令与操作
P粉191340380
Original
314 people have browsed it

composer常用指令

  1. // 查询版本信息
  2. composer -v
  3. // 注册并生效
  4. composer dumpautoload
  5. // 交互式创建配置文件`composer.json`
  6. composer init
  7. // 安装包
  8. composer install
  9. // 符合最新版本的依赖
  10. composer update

composer.json配置文件

  1. {
  2. "autoload":{
  3. "classmap":[
  4. "inc/",
  5. "MyClass.php"
  6. ],
  7. "files":[
  8. "config/connect.php",
  9. "lib/helper.php"
  10. ],
  11. "psr-4":{
  12. "phpcn\\": "admin/"
  13. }
  14. },
  15. "require":{
  16. "gregwar/captcha": "^1.1",
  17. "catfan/medoo": "^2.1"
  18. }
  19. }
Correcting teacher:PHPzPHPz

Correction status:qualified

Teacher's comments:
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post