Looking to hire Laravel developers? Try LaraJobs

laravel-swagger-attributes maintained by krasnikov-dev

Last update
2026/09/18 18:20 (dev-main)
Links
Downloads
725

Comments
comments powered by Disqus

License

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()