laravel-swagger-attributes maintained by krasnikov-dev
laravel-swagger-attributes
Generate interactive OpenAPI documentation for your RESTful API using PHP attributes (preferred)
Requirements
laravel-swagger-attributes requires at PHP 8.2
Installation (with Composer)
composer require krasnikov-dev/laravel-swagger-attributes
php artisan vendor:publish --provider="KrasnikovDev\SwaggerAttributes\SwaggerAttributesServiceProvider" --tag="config"
Usage
#[Tags(tags: ['V2'])]
#[Summary(summary: 'Update some one')]
#[Response(code: Response::HTTP_NO_CONTENT)]
public function update()