LaravelPackages.net
Acme Inc.
Toggle sidebar
johnylemon/explainer-laravel

API Explainer for laravel Framework

11
0
v1.0.1
About johnylemon/explainer-laravel

johnylemon/explainer-laravel is a Laravel package for api explainer for laravel framework. It currently has 0 GitHub stars and 11 downloads on Packagist (latest version v1.0.1). Install it with composer require johnylemon/explainer-laravel. Discover more Laravel packages by johnylemon or browse all Laravel packages to compare alternatives.

Last updated

Explainer for Laravel

A simple Laravel api documentation generator

Core package: https://github.com/johnylemon/explainer

Features

This tool makes possible to explain every app route by using simple explain method via clean document accessible under configured route address.

How to use

Simply call explain method on your routes:

Route::get('/', 'IndexController@index')->explain(\App\Explains\IndexRouteExplain::class);

Examples

Explain file generation

To generate route explain file with name IndexRouteExplain in app/Explains directory simply type:

php artisan explain:route IndexRouteExplain

Explain example generation

To generate route explain example file with name ValidationExample in app/Explains/Examples directory simply type:

php artisan explain:example ValidationExample

generate documentation

Simply type

php artisan explain

and... enjoy!

Star History Chart