Yii Framework 34k+
  • News
  • Guide
  • API
  • Wiki
  • Forum
  • Community
    • Places
    • Members
    • Hall of Fame
    • Badges
  • More
    • Learn
    • Books
    • Resources
    • Develop
    • Download Yii
    • Extensions
    • Report an Issue
    • Report a Security Issue
    • Contribute to Yii
    • Donate
    • About
    • Release Cycle
    • License
    • Team
    • Official Logos and Design
Login

Yii Swagger 2.2

Jan 27, 2025

Version 2.2 of Yii Swagger package has been released. Here is the list of changes included in the new version:

  • added support yiisoft/assets version of ^5.0;
  • raised the minimum PHP version to 8.1 and minor refactoring.

Yii Swagger 2.1

Sep 4, 2024

Version 2.1 of Yii Swagger package has been released. Here is the list of changes included in the new version:

  • Added support for psr/http-message of versions ^2.0.
  • Raised required yiisoft/yii-view version to ^7.1.
  • Added \Yiisoft\Swagger\Action\SwaggerJson and \Yiisoft\Swagger\Action\SwaggerUi actions, mark \Yiisoft\Swagger\Middleware\SwaggerJson and \Yiisoft\Swagger\Middleware\SwaggerUi clases as deprecated (they will be removed in the next major version).
  • Added support for swagger-api/swagger-ui of version 5.

Yii Swagger 2.0

Feb 16, 2023

Major versions of Yii Swagger were tagged.

In this version configuration group names adapted to Yii conventions, explicitly added transitive dependencies, and added support for:

  • yiisoft/aliases version of ^3.0;
  • yiisoft/assets version of ^3.0|^4.0;
  • yiisoft/cache version of ^3.0;
  • yiisoft/data-response version of ^2.0;

Read more

Yii Swagger 1.2.0

Feb 10, 2022

Yii Swagger intergration package was updated to version 1.2.0. In this version we have added an ability to configure OpenApi\Annotations\OpenAPI generation via Yiisoft\Swagger\Service\SwaggerService in config/params.php:

'yiisoft/yii-swagger' => [
    // Default values are specified.
    'open-api-options' => [
        'aliases' => OpenApi\Generator::DEFAULT_ALIASES,
        'namespaces' => OpenApi\Generator::DEFAULT_NAMESPACES,
        'analyser' => null,
        'analysis' => null,
        'processors' => null,
        'logger' => null,
        'validate' => true,
        'version' => OpenApi\Annotations\OpenApi::DEFAULT_VERSION,
    ],
],
//...

Yii Swagger 1.1.0

Jan 14, 2022

Yii Swagger intergration package was updated to version 1.1.0. In this version an ability to configure Yii\Swagger\Middleware\SwaggerJson via config/params.php was added:

//...
'yiisoft/yii-swagger' => [
    'annotation-paths' => [
        '@src/Controller' // Directory where annotations are used
    ],
    'cacheTTL' => 60 // Enables caching and sets TTL, "null" value means infinite cache TTL.
]
//...

Yii Swagger 1.0.0

Dec 15, 2021

First version of Yii Swagger intergration package was released.

It provides an integration of Swagger-PHP with Yii3 allowing to generate API documentation based on annotations such as:

/**
 * @OA\Get(
 *     path="/api/endpoint",
 *     @OA\Response(response="200", description="Get default action")
 * )
 */
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
{
    // ...
}

More details are available in the package readme.

Get notified of news as soon as they are available using our RSS Feed.

Years

  • 2026 (48)
  • 2025 (92)
  • 2024 (80)
  • 2023 (90)
  • 2022 (82)
  • 2021 (101)
  • 2020 (64)
  • 2019 (75)
  • 2018 (32)
  • 2017 (35)
  • 2016 (30)
  • 2015 (9)
  • 2014 (6)
  • 2013 (11)
  • 2012 (14)
  • 2011 (10)
  • 2010 (10)
  • 2009 (23)
  • 2008 (5)

Popular Tags

  • yii3 387
  • extensions 233
  • release 109
  • yii2 74
  • debug 30
  • view 28
  • html 25
  • auth client 23
  • bootstrap 21
  • redis 20
  • Yii 1.1
  • Guide
  • API
  • Wiki
  • Yii 2
  • Guide
  • API
  • Wiki
  • Yii3
  • Guide
  • API
  • Cookbook
  • Terms of service
  • License
  • Contact Us
  • Supported by
  • Your donations
  • JetBrains logo
  • © 2008 - 2026 Yii (Website Source Code)