{"repo":"harmbandstra/swagger-ui-bundle","free":true,"listed":false,"github":"https://github.com/harmbandstra/swagger-ui-bundle","clone":"git clone https://github.com/harmbandstra/swagger-ui-bundle.git","description":"Expose swagger-ui inside your symfony project through a route (eg. /docs) for viewing your OpenAPI spec.","language":"PHP","stars":40,"topics":["openapi","php","symfony","symfony-bundle","swagger-ui"],"license":"GPL-3.0","category":"api-integrations-sdks","readme_excerpt":"Swagger UI Bundle Expose swagger-ui inside your symfony project through a route (eg. /docs), just like nelmio api docs, without the need for node. Just add a reference to your OpenAPI Yaml or JSON specification, and enjoy swagger-ui in all it's glory. After installation and configuration, just start your local webserver, and navigate to /docs or /docs/my swagger spec.yml. Compatibility If you need symfony 2.3 - 2.6 support, use version 1.x. If you need symfony 2.7 - 3.x support, or php 5.x use version 2.x. For symfony 3.3 and later with PHP 7.0 use version 3.x. For symfony 4.0 and later with PHP = 7.1.3 use version 4.x. For PHP 8.0 user version 4.4 NOTE Since version 3.1, support for symfony 4 on the 3.x branch has been dropped. Use the 4.x branch instead. Installation Install with composer in dev environment: $ composer require harmbandstra/swagger-ui-bundle --dev Make sure swagger-ui assets are copied to web/bundles by adding the HarmBandstra\\SwaggerUiBundle\\Composer\\ScriptHandler::linkAssets composer hook before the Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets hook in your composer.json . If the scripts section in composer.json looks like this (symfony 4): Add the composer hook like this: Enable bundle in app/AppKernel.php (Symfony 3): Enable bundle in config/bundles.php (Symfony 4): Add the route where swagger-ui will be available in routing dev.yml : Configuration (Symfony 3) In your config.yml , link to the swagger spec. Specify the directory w","default_branch":null,"files":null,"tree":[],"storefront":"/r/harmbandstra","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/harmbandstra/swagger-ui-bundle/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}