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 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.

Widget 1.0.0

Dec 12, 2021

First version of yiisoft/widget package was released.

Widgets are reusable building blocks used to create complex and configurable user interface elements in an object-oriented fashion.

This package provides an abstract class and a factory for creating widgets, ready-made widgets are provided in the yiisoft/yii-widgets package.

Usage details and syntax examples are available in the package readme.

Factory 1.0.0

Dec 11, 2021

First version of Factory package was released. This package provides abstract object factory allowing to create objects by given definition with dependencies resolved by a PSR-11 container. It is useful if you need to create objects using definition syntax and/or want to configure defaults for objects created.

$container = new PSR11DependencyInjectionContainer();
$factoryConfig = [
    EngineInterface::class => [
        'class' => EngineMarkOne::class,
        '__construct()' => [
            'power' => 42,
        ],
    ]
];

$factory = new Factory($container, $factoryConfig);

$one = $factory->create(EngineInterface::class);
$two = $factory->create([
    'class' => EngineInterface::class,
    '__construct()' => [
        'power' => 146,
    ],
]);

See package README for more details.

Yii HTTP

Dec 8, 2021

First release of yii-http package is tagged. It provides the application class, as well as the events and handlers needed to interact with HTTP. The package is implemented using PSR-7 interfaces.

More details are available in the package readme.

Yii Dependency Injection 1.0.0

Dec 3, 2021

Version 1.0.0 of Yii Dependency Injection container is released. It is a PSR-11 compatible dependency injection container that is able to instantiate and configure classes resolving dependencies.

Features are:

  • PSR-11 compatible.
  • Supports property injection, constructor injection and method injection.
  • Detects circular references.
  • Accepts array definitions. Could be used with mergeable configs.

Read more

Definitions 1.0.0

Nov 30, 2021

A stable version of definitions package was tagged.

The package provides syntax constructs describing a way to create and configure a service or an object.

The following are provided:

  • Definitions describing services or objects to create. This includes syntax, its validation and resolving it to objects.
  • References and dynamic references to point to other definitions. These include additional utility to refer to multiple definitions at once.

While, by itself, the package is not very useful for end users of the framework, it is a base upon which yiisoft/di and yiisoft/factory are built. And the base is solid with a great code coverage and mutation score.

CSRF 1.2.0

Nov 22, 2021

Minor verison of CSRF package was tagged adding ability to specify your own failure handler:

use Psr\Http\Message\ResponseFactoryInterface;
use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Server\RequestHandlerInterface;
use Yiisoft\Csrf\CsrfMiddleware;

/**
 * @var Psr\Http\Message\ResponseFactoryInterface $responseFactory
 * @var Yiisoft\Csrf\CsrfTokenInterface $csrfToken
 */
 
$failureHandler = new class ($responseFactory) implements RequestHandlerInterface {
    private ResponseFactoryInterface $responseFactory;
    
    public function __construct(ResponseFactoryInterface $responseFactory)
    {
        $this->responseFactory = $responseFactory;
    }

    public function handle(ServerRequestInterface $request): ResponseInterface
    {
        $response = $this->responseFactory->createResponse(400);
        $response->getBody()->write('Bad request.');
        return $response;
    }
};

$middleware = new CsrfMiddleware($responseFactory, $csrfToken, $failureHandler);

Middleware dispatcher 2.0.0

Nov 10, 2021

New major release of middleware dispatcher package was tagged. While 1.0.0 was released only a few days ago, we had a great usability idea that, as usual, came right after 1.0.0 was done.

This release reverses middleware order. Previously it was expecting reverse order:

$dispatcher = $dispatcher->withMiddlewares([
    static function (): ResponseInterface {
        return new Response(418);
    },
    TeapotAccessChecker::class,
]);

Now it uses natural order that reads way better:

$dispatcher = $dispatcher->withMiddlewares([
    TeapotAccessChecker::class,
    static function (): ResponseInterface {
        return new Response(418);
    },    
]);

Error handler 2.0.0

Nov 9, 2021

Error handler package got a major release.

Visible part is that solution is now formatted better. Internally, HeaderHelper is now used from http package.

HTTP 1.2.0

Nov 9, 2021

Version 1.2.0 of yiisoft/http package was released.

HeaderValueHelper was added. It allows parsing various string header values into more convenient data structures.

use Yiisoft\Http\HeaderValueHelper;

Read more

Middleware dispatcher 1.0.0

Nov 8, 2021

Stable release of middleware dispatcher package was tagged.

The package is a PSR-15 middleware dispatcher. Given a set of middleware and a request instance, dispatcher executes it is produces a response instance.

use Yiisoft\Middleware\Dispatcher\MiddlewareDispatcher;
use Yiisoft\Middleware\Dispatcher\MiddlewareFactory;

Read more

Redis adapter for cache 1.0.0

Nov 7, 2021

First version of Redis adapter for Yii cache was released. It is based on predis and could be used either standalone as PSR-16 cache implementation or with Yii cache to gain additional benefits.

Quality standard for the package is similar to other Yii 3 packages: 100% unit test coverage with 98.5% mutation score, and 94.9% type coverage.

i18n 1.1.0

Nov 5, 2021

New version of yiisoft/i18n package was released.

This version adds support for keywords hours, colnumeric, and colcasefirst. These keywords are part of the ECMAScript 2022 Internationalization API Specification (ECMA-402 9th Edition), and supporting them allows for better cross-communication between PHP and JavaScript layers.

  • hours defines an hour cycle for the locale (i.e. h11, h12, h23, h24). For more information see the key/type definition for the Unicode Hour Cycle Identifier.
  • colnumeric and colcasefirst are both collation settings defined as part of the Unicode Locale Data Markup Language.

Assets 2.0.0

Nov 4, 2021

Version 2.0.0 of assets package was released improving public API for more convenient use.

Previously you had to specify assets registered as array:

$assetManager->register([\App\Assets\MainAsset::class]);

Read more

Yii Console 1.0.0

Nov 1, 2021

First release of Yii Console package was tagged. It provides a console that could be added to an application.

The package uses Symfony Console under the hood and adds:

  • serve command that starts built-in PHP server.
  • Application events ApplicationStartup and ApplicationShutdown.
  • Friendly exceptions support.
  • namespace/command command naming style.

Read more

View 4.0.0

Oct 25, 2021

Version 4.0.0 of View package is released. In this version:

  • Added ViewInterface that View and WebView implement.
  • Improved exception message on getting not exist block or parameter in View and WebView.
  • We flush currently being rendered view files on context change now via View::withContext() or WebView::withContext().

VarDumper 1.2.0

Oct 24, 2021

An update was made to yiisoft/var-dumper package.

In this version \Yiisoft\VarDumper\VarDumper::withOffset() was added. It allows to adjust generated code nesting offset:

$test = [
    'value' => 42, // <--- default offset is 4 spaces
];

Arrays 2.0.0

Oct 23, 2021

Major version of yiisoft/arrays was released:

  • New ArrayHelper::group() that groups the array according to a specified key.
  • Support for iterable objects in ArrayHelper::map(), ArrayHelper::index(), ArrayHelper::group(), ArrayHelper::htmlEncode() and ArrayHelper::htmlDecode.
  • ArrayHelper and ArraySorter are now final.
  • Fixed incorrect default value returned from ArrayHelper::getValue() when key does not exist and default is array.

Yii View 4.0.0

Oct 21, 2021

Yii view package version 4.0.0 was tagged.

CsrfInjection now injects a stringable CSRF object with methods getToken(), getParameterName(), getHeaderName() and hiddenInput() instead of string token to common parameters.

CSRF 1.1.0

Oct 21, 2021

Minor verison of CSRF package was tagged adding ability to obtain parameter and header names set to the middleware via CsrfMiddleware::getParameterName() and CsrfMiddleware::getHeaderName().

  • «
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • »
Get notified of news as soon as they are available using our RSS Feed.

Years

  • 2026 (44)
  • 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 384
  • extensions 233
  • release 109
  • yii2 73
  • 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)