Skip to content

About

OpenAPI simple automated specification generator for Laravel

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

34 Commits

Folders and files

Repository files navigation

Jurager/Documentator

Latest Stable Version Total Downloads PHP Version Require License Ko-fi

Generate OpenAPI 3.0 specifications from Laravel routes, validation rules, and API resources.

Installation

Documentator requires PHP 8.3 or greater and Laravel 10–13:

composer require jurager/documentator
php artisan documentator:generate

Your specification is written to docs/openapi.json. Routes matching api/* are included by default.

Documenting Endpoints

Add descriptions and examples to your controller methods:

/**
 * List users.
 *
 * @group Users
 * @preset pagination
 * @queryParam search string optional Filter by name.
 */

Request fields are read from validation rules and response fields from API resources. See the documentation or the installation guide to get started.

License

The MIT License. See LICENSE.

About

OpenAPI simple automated specification generator for Laravel

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages