{"repo":"yiisoft/yii-swagger","free":true,"listed":false,"github":"https://github.com/yiisoft/yii-swagger","clone":"git clone https://github.com/yiisoft/yii-swagger.git","description":"Swagger integration for Yii","language":"PHP","stars":31,"topics":["api","openapi","swagger","swagger-ui","yii3","hacktoberfest"],"license":"BSD-3-Clause","category":"api-integrations-sdks","readme_excerpt":"Yii Swagger OpenAPI Swagger for Yii Framework. Requirements - PHP 8.1 - 8.5. Installation The package could be installed with Composer: Configuration 1. Add route configuration to config/routes.php 2. Add attributes to default API controller and before actions See Swagger-PHP documentation for details on how to annotate your code. 3. Configure SwaggerJson action For attributes to be registered you need to configure SwaggerJson . You can use the parameters in config/params.php to configure SwaggerJson : 4. (Optional) Add config for aliases and asset manager 5. (Optional) Configure SwaggerUi action You can use the parameters in config/params.php to configure SwaggerUi . For example, you can enable persisting authorization by setting the persistAuthorization parameter to true . You can find a complete list of parameters by following the link. 6. (Optional) Configure SwaggerService You can specify options for generation an OpenApi\\Annotations\\OpenApi instance in config/params.php to configure SwaggerService : Or you can specify definition of OpenApi\\Generator in di-web.php : For more information about generation an OpenApi\\Annotations\\OpenApi instance, see the documentation of the zircote/swagger-php package. Documentation - Internals If you need help or have a question, the Yii Forum is a good place for that. You may also check out other Yii Community Resources. License The Yii Swagger is free software. It is released under the terms of the BSD License. Please see LICENSE for mo","default_branch":null,"files":null,"tree":[],"storefront":"/r/yiisoft","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/yiisoft/yii-swagger/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."}