New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

omid-zahed/laravel-request-docs

Automatically generate Laravel docs from request rules, controllers and routes
1,861
Install
composer require omid-zahed/laravel-request-docs:dev-master
PHP:^7.3|^7.4|^8.0
License:MIT
Last Updated:Jun 13, 2022
Links: GitHub  ·  Packagist
Maintainer: Omid-Zahed

Laravel Docs Generator

Automatically generate api documentation for Laravel without writing annotations.

Read more: https://medium.com/web-developer/laravel-automatically-generate-api-documentation-without-annotations-a-swagger-alternative-e0699409a59e

Requirements

Lang Version
PHP 7.4 or 8.0
Laravel 6.* or 8.*

Installation

You can install the package via composer:

composer require rakutentech/laravel-request-docs --dev

You can publish the config file with:

php artisan vendor:publish --tag=request-docs-config

Usage

View in the browser on /request-docs/

or generate a static HTML

php artisan lrd:generate

Docs HTML is generated inside docs/.

Design pattern

In order for this plugin to work, you need to follow the design pattern by injecting the request class inside the controller. For extra documentation you can use markdown inside your controller method as well.

Design pattern

Screenshots

Generated API documentation

Preview

Try API

Preview

Testing

./vendor/bin/phpunit

Changelog

  • Initial Release

Related Packages

rakutentech/laravel-request-docs

Automatically generate Laravel docs from request rules, controllers and routes

1,438,706 781
doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

648,266,899 9,701
laravel/framework

The Laravel Framework.

604,216,237 34,982
laravel/tinker

Powerful REPL for the Laravel framework.

512,508,631 7,443
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

429,221,767 607