oat-sa / swagger-json-collector
Combine multiple swagger 2.0 documents into a single document
Installs: 27
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 15
Forks: 1
pkg:composer/oat-sa/swagger-json-collector
Requires (Dev)
- phpunit/phpunit: ^5.5
This package is auto-updated.
Last update: 2025-10-16 05:35:06 UTC
README
Combines Swagger docs from various sources
Example of usage
Valid input formats are files that contains JSON, or JSON strings or PHP arrays. Formats can be mixed within the input array.
$collector = new DocsCollector(); $doc = $collector->generate(['swagger.json', '{ "swagger": "2.0",...}'], [ 'swagger' => '2.0',...]]); file_put_contents('swaggerDoc.json', json_encode($doc))