wfelipew/swagger-module
Composer 安装命令:
composer require wfelipew/swagger-module
包简介
Zend Framework 2 Module for Swagger resource file generation
README 文档
README
A Zend Framework 2 module that allows the generation of Swagger compliant resource files and is based on swagger-php.
Requirements
- PHP 5.3 or higher
- Zend Framework 2
Installation
Installation of SwaggerModule uses composer. For composer documentation, please refer to getcomposer.org.
Installation steps
-
cd my/project/directory -
create a
composer.jsonfile with following contents:{ "require": { "outeredge/swagger-module": "dev-master" } } -
install composer via
curl -s http://getcomposer.org/installer | php(on windows, download http://getcomposer.org/installer and execute it with PHP) -
run
php composer.phar install -
copy config/module.swagger.global.php.dist to your config/autoload folder and modify paths variable
-
open
my/project/directory/configs/application.config.phpand add the following key to yourmodules:'SwaggerModule',
Usage
See swagger-php for library usage information.
$swagger = $this->getServiceLocator()->get('service.swagger'); echo $swagger->getResource('http://org.local/v1');
统计信息
- 总下载量: 4.57k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 8
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2016-05-17