Giter Club home page Giter Club logo

swaggermodule's Introduction

SwaggerModule

A Zend Framework module that allows the generation of Swagger compliant resource files and is based on swagger-php.

Installation

The recommended way to install outeredge/swagger-module is through composer:

php composer.phar require outeredge/swagger-module

You can then enable this module in your config/application.config.php by adding SwaggerModule to the modules key:

// ...
    'modules' => array(
        // ...
        'SwaggerModule'
    ),

Configuration

Copy config/module.swagger.global.php.dist to your config/autoload folder and modify paths variable

Usage

See swagger-php for library usage information.

$swagger = $this->getServiceLocator()->get('service.swagger');
echo $swagger->getResource('http://org.local/v1');

swaggermodule's People

Contributors

alexdenvir avatar bakura10 avatar chaos0815 avatar davidwindell avatar trunst avatar xerkus avatar xl32 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

swaggermodule's Issues

Not working anymore

This Module does not work anymore with latest Zend2 and Swagger 2.0

Do you mind to update it in the future?

Version 2.1.0 BC break with ZF2

Releare 2.1.0 breaks backward compability with ZF2, because of commit:
bfa6f7a

In ZF 2.3.1 there is no Zend\ServiceManager\Factory\FactoryInterface;, instead of this there is Zend\ServiceManager\FactoryInterface;

In my opinion, version 2.1.0 should be 3.x.

Not compitable with zf3

I just included it using composer and it is giving me this error
Fatal error: Declaration of SwaggerModule\Controller\DocumentationControllerFactory::__invoke(Interop\Container\ContainerInterface $container, $requestedName) must be compatible with Zend\ServiceManager\Factory\FactoryInterface::__invoke(Interop\Container\ContainerInterface $container, $requestedName, ?array $options = NULL) in E:\xampp\htdocs\pi-v3\vendor\outeredge\swagger-module\src\SwaggerModule\Controller\DocumentationControllerFactory.php on line 27

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.