Blogger Information
Blog 13
fans 0
comment 0
visits 18710
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
码云(gitee)上传composer包到packagist,并在thinkphp5.0和6.0中使用
麦站网络
Original
832 people have browsed it

1.GITEE上创建仓库,并PULL至本地。

1.1在本地用工具HBuilderX运行:选择文件》导入》从git导入

2.初始化项目,生成COMPOSER包描述文件

2.1在生成的文件夹中,按照下图示目录结构创建文件(也可不按照图示,我没有尝试)


2.2初始化composer包描述文件

(1)cmd定位到项目根目录,在此案例中,为D:\UPUPW_ANK_W64\htdocs\wxgetphone
(2)composer init
(3)初始化开始,如图:

(4)接下来填写此文件的依赖,因为这个为测试,没有依赖,所以填no:

后期也可以在composer.json中修改添加
(5)接下来直接回车:

(6)至此,composer.json文件生成
(7)打开新生成的composer.json,增加自动加载配置,主要是对命名空间和本地代码目录之间的映射

3.提交项目至GITEE

(1)右键选择git提交

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