ensi / laravel-serve-swagger
Laravel serve swagger
Installs: 41 827
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 2
Open Issues: 0
Requires
- php: ^8.1
- laravel/framework: ^9.0 || ^10.0 || ^11.0
- swagger-api/swagger-ui: ^3.30.0 || ^4
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.2
- orchestra/testbench: ^7.0 || ^8.0 || ^9.0
- pestphp/pest: ^1.22 || ^2.0
- pestphp/pest-plugin-laravel: ^1.1 || ^2.0
- phpstan/extension-installer: ^1.3
- phpstan/phpstan: ^1.11
- spaze/phpstan-disallowed-calls: ^2.15
README
The package allows you to output the Swagger UI by configuring only the paths to your openapi3 configs
Installation
You can install the package via composer:
composer require ensi/laravel-serve-swagger
Publish config file like this:
php artisan vendor:publish --provider="Ensi\LaravelServeSwagger\ServeSwaggerServiceProvider"
Configure config/serve-swagger.php
Version Compatibility
Contributing
Please see CONTRIBUTING for details.
Testing
- composer install
- composer test
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
License
The MIT License (MIT). Please see License File for more information.