Download the PHP package aymard-pro/cake-swagger without Composer
On this page you can find all versions of the php package aymard-pro/cake-swagger. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package cake-swagger
cake-swagger
CakePHP 3.x
plugin that dinamically adds auto-generated Swagger documentation to your projects using swagger-php
and swagger-ui 3.x
Requirements
- CakePHP 3.0+
- Some swagger-php annotation knowledge
Installation
-
Install the plugin using composer:
-
To enable the plugin either run the following command:
or manually add the following line to your
config/bootstrap.php
file: -
Create the configuration file
/config/cake-swagger.php
if not exists. See #Configuration section -
Browsing to
http://your_app_uri/api/ui
should now produce the Swagger-UI interface:
Configuration
All configuration for this plugin is done through the /config/cake-swagger.php
configuration file. Full example below.
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.
NB
This plugin was originally forked from alt3/cakephp-swagger based on the Swagger-UI 2.2.3