A Zend Framework module that allows the generation of Swagger compliant resource files and is based on swagger-php.
The recommended way to install
outeredge/swagger-module is through
composer:
php composer.phar require outeredge/swagger-moduleYou can then enable this module in your config/application.config.php by adding
SwaggerModule to the modules key:
// ...
'modules' => array(
// ...
'SwaggerModule'
),Copy config/module.swagger.global.php.dist to your config/autoload folder and modify paths variable
See swagger-php for library usage information.
$swagger = $this->getServiceLocator()->get('service.swagger');
echo $swagger->getResource('http://org.local/v1');