dev-master
9999999-dev
MIT
The Requires
documentation swagger slim
0.1.0
0.1.0.0
MIT
The Requires
documentation swagger slim
Wallogit.com
2017 © Pedro Peláez
This library is intended to automatically build documentation with the smallest friction possible in a defined scope (see Scope) If your use case doesn't match the current scope, please create an issue/pr, (*1)
APIS running:, (*2)
composer require nicolas-cajelli/api-documenter
./vendor/bin/build-documentation src/routes.php "My api name" "/my/api/basepath"
Create a .php in your project:, (*3)
<?php
$loader = require 'vendor/autoload.php';
# Required by gson library
\Doctrine\Common\Annotations\AnnotationRegistry::registerLoader([$loader, 'loadClass']);
$app = new \Documenter\FakeApp('My api name');
$app->setBasePath('/my/api/basepath');
$app->setDescription('My api description');
$app->setVersion('1.0.0');
require 'src/routes.php';
$formatter = new \Documenter\Formatter\SwaggerFormatter();
echo $formatter->getDocumentation($app);
MIT
documentation swagger slim
MIT
documentation swagger slim