2017 © Pedro Peláez
 

cakephp-plugin cake-swagger

Swagger plugin for CakePHP v3

image

aymard-pro/cake-swagger

Swagger plugin for CakePHP v3

  • Friday, May 26, 2017
  • by aymard-pro
  • Repository
  • 1 Watchers
  • 0 Stars
  • 19 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

cake-swagger

License, (*1)

CakePHP 3.x plugin that dinamically adds auto-generated Swagger documentation to your projects using swagger-php and swagger-ui 3.x, (*2)

Requirements

Installation

  1. Install the plugin using composer:, (*3)

    composer require aymard-pro/cake-swagger:dev-master
    
  2. To enable the plugin either run the following command:, (*4)

    bin/cake plugin load CakeSwagger --routes --bootstrap
    

    or manually add the following line to your config/bootstrap.php file:, (*5)

    Plugin::load('CakeSwagger', ['routes' => true, 'bootstrap' => true]);
    
  3. Create the configuration file /config/cake-swagger.php if not exists. See #Configuration section, (*6)

  4. Browsing to http://your_app_uri/api/ui should now produce the Swagger-UI interface:, (*7)

    Default UI index, (*8)

Configuration

All configuration for this plugin is done through the /config/cake-swagger.php configuration file. Full example below., (*9)

<?php

return [
    'CakeSwagger' => [
        'ui' => [
            'title' => 'CakePHP Swagger plugin'
        ],
        'route' => [
            'path' => '/api'
        ],
        'directory' => [],
        'exclude' => []
    ]
];

Additional Reading

Contribute

I'm trying to make this plugin very testable for the community. Your ideas and suggestions are welcome. Create an issue here., (*10)

NB

This plugin was originally forked from alt3/cakephp-swagger based on the Swagger-UI 2.2.3, (*11)

The Versions

26/05 2017

dev-master

9999999-dev

Swagger plugin for CakePHP v3

  Sources   Download

MIT

The Requires

 

The Development Requires

by AYMARD KOUAKOU

17/04 2017

0.2

0.2.0.0

Swagger plugin for CakePHP v3

  Sources   Download

MIT

The Requires

 

The Development Requires

by AYMARD KOUAKOU

17/04 2017

0.1

0.1.0.0

Swagger plugin for CakePHP v3

  Sources   Download

MIT

The Requires

 

The Development Requires

by AYMARD KOUAKOU