Package Data | |
---|---|
Maintainer Username: | johnylemon |
Maintainer Contact: | johnylemon1989@gmail.com (Piotr Krzempek) |
Package Create Date: | 2019-05-16 |
Package Last Update: | 2019-09-04 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-15 15:21:52 |
Package Statistics | |
---|---|
Total Downloads: | 8 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 1 |
Total Forks: | 0 |
Total Open Issues: | 0 |
A simple Laravel api documentation generator
This tool makes possible to explain every app route by using simple explain
method via clean document accessible under configured route address.
\Lemon\ExplainerLumen\Providers\ExplainerLumenServiceProvider
to your app/bootstrap.php
file$this->configure('explainer')
to your app/bootstrap.php
file after provider line// $app = new Laravel\Lumen\Application(
// dirname(__DIR__)
// );
into this
$app = new Lemon\ExplainerLumen\Application(
dirname(__DIR__)
);
vendor/johnylemon/explainer/config/explainer.php
file to your config
directorySimply call explain
method on your routes:
$router->get('/', 'IndexController@index')->explain(\App\Explains\IndexRouteExplain::class);
To generate route explain file with name IndexRouteExplain
in app/Explains
directory simply type:
php artisan explain:route IndexRouteExplain
To generate route explain example file with name ValidationExample
in app/Explains/Examples
directory simply type:
php artisan explain:example ValidationExample
Simply type
php artisan explain
and... enjoy!