[英]How to add vendor module without composer?
I want to add a module Swagger( https://github.com/outeredge/SwaggerModule ) to my Zend Framework 2 vendor library. 我想将模块Swagger( https://github.com/outeredge/SwaggerModule )添加到我的Zend Framework 2供应商库中。 It has instructions for using composer, but I want to do it without composer.
它具有使用作曲家的说明,但是我想在没有作曲家的情况下进行操作。
Can anyone help me on how to go about with this? 谁能帮我解决这个问题? What I tried:
我试过的
swagger.global.php
file to config/autoload
swagger.global.php
文件添加到config/autoload
'SwaggerModule'
, to application.config.php
application.config.php
添加了'SwaggerModule'
You can download the source files from github and add them to your models as a separate package. 您可以从github下载源文件,并将它们作为单独的软件包添加到模型中。
You will have to do some refactoring to ensure proper autoloading and avoid namespace conflicts if any. 您将必须进行一些重构以确保正确的自动加载并避免名称空间冲突(如果有)。 Also the executable files will have to go to a build folder.
另外, 可执行文件将必须转到构建文件夹。
Adding the contents of https://github.com/zircote/swagger-php/tree/master/src as a separate package (it's own folder/namespace) should do the trick. 将https://github.com/zircote/swagger-php/tree/master/src的内容添加为单独的包(它是自己的文件夹/命名空间)应该可以解决问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.