folksyfolks / l5-swagger
OpenApi or Swagger integration to Laravel
Fund package maintenance!
DarkaOnLine
Requires
- php: ^7.2 || ^8.0
- ext-json: *
- doctrine/annotations: ^1.0 || ^2.0
- laravel/framework: ^11.0 || ^10.0 || ^9.0 || >=8.40.0 || ^7.0
- swagger-api/swagger-ui: ^3.0 || >=4.1.3
- symfony/yaml: ^5.0 || ^6.0 || ^7.0
- zircote/swagger-php: ^3.2.0 || ^4.0.0
Requires (Dev)
- mockery/mockery: 1.*
- orchestra/testbench: ^9.0 || ^8.0 || 7.* || ^6.15 || 5.*
- php-coveralls/php-coveralls: ^2.0
- phpunit/phpunit: ^11.0 || ^10.0 || ^9.5
- dev-main
- 8.6.1
- 8.3.0
- 8.2.1
- 8.2.0
- 8.1.1
- 8.1.0
- 8.0.9
- 8.0.8
- 8.0.7
- 8.0.6
- 8.0.5
- 8.0.4
- 8.0.3
- 8.0.2
- 8.0.1
- 8.0.0
- 7.x-dev
- 7.0.1
- 7.0
- 6.x-dev
- 6.0.6
- 6.0.5
- 6.0.4
- 6.0.3
- 6.0.2
- 6.0.1
- 6.0
- 5.8.x-dev
- 5.8.5
- 5.8.4
- 5.8.3
- 5.8.2
- 5.8.1
- 5.8.0
- 5.7.x-dev
- 5.7.3
- 5.7.2
- 5.7.1
- 5.7.0
- 5.6.x-dev
- 5.6.9
- 5.6.8
- 5.6.7
- 5.6.5
- 5.6.4
- 5.6.3
- 5.6.2
- 5.6.1
- 5.6.0
- 5.5.x-dev
- 5.5.9
- 5.5.8.x-dev
- 5.5.8.3
- 5.5.8.2
- 5.5.8.1
- 5.5.8
- 5.5.7
- 5.5.6
- 5.5.5
- 5.5.4
- 5.5.3
- 5.5.2
- 5.5.1
- 5.5.0
- 5.4.x-dev
- 5.4.0
- 5.0.4
- 5.0.3
- 5.0.2
- 5.0.1
- 5.0
- 4.0.x-dev
- 4.0.1
- 4.0
- 3.x-dev
- 3.2.3
- 3.2.2
- 3.2.1
- 3.2
- 3.1.5
- 3.1.4
- 3.1.3
- 3.1.2
- 3.1.1
- 3.1
- 3.0.1
- 3.0
- 2.1.3
- 2.1.2
- 2.1.1
- 2.1
- 2.0.x-dev
- v2.0
- 1.0.x-dev
- v0.2
- v0.1
- dev-master
- dev-DarkaOnLine-master
- dev-dev-8.1.0
- dev-add-processor-order-config
- dev-maintenence-2022-03
- dev-add-deepLinking-param-for-swagger-ui-template
- dev-laravel-9-support
- dev-upgrade-to-swagger-ui-4
- dev-create-docker-container-for-testing
- dev-change-processors-parsing
- dev-allow-php-8
- dev-fix-security-config-example
- dev-fix-requestInterceptor-for-6.x
- dev-fix-requestInterceptor-for-7.x
This package is auto-updated.
Last update: 2025-03-19 19:46:29 UTC
README
This is a fork from DarkaOnLine's L5-swagger. The version is locked to version 8.1.0.
For more information on how to use this package, please refer to the original fork.
Changes
The main change from this package is the ability to define, from the "scanOptions" config key, after which processor we want to add our custom processor.
Usage
For the base usage please refer to the original documentation.
As for the custom usage, we simpy added a config key append-processors-after
, under scanOptions
:
// l5-swagger.php return [ 'default' => 'default', 'documentations' => [ /* ... */ ], 'defaults' => [ /* ... */ 'scanOptions' => [ /* ... */ 'processors' => [ // new \App\SwaggerProcessors\SchemaQueryParameter(), ], /** * Define after which Open Api's processors we want to happens the custom one. */ 'append-processors-after' => \OpenApi\Processors\BuildPaths::class, /* ... */ ], /* ... */ ];
The default value is \OpenApi\Processors\BuildPaths::class
, which is the original value in the original fork.