Test Support 2.0.0
Test Support package version 2.0.0 was released.
This version raises the minimum psr/log version to ^2.0|^3.0 and the minimum PHP version to 8.0.
Test Support package version 2.0.0 was released.
This version raises the minimum psr/log version to ^2.0|^3.0 and the minimum PHP version to 8.0.
Error handler package was updated with the following enhancements:
Yiisoft\ErrorHandler\Event\ApplicationError triggered after the error is handled.Major version of Log package was released. In this version we have moved from PSR interfaces version 1.1 to version 2.0|3.0. As a result, there are types added everywhere and the package is no more compatible with PHP 7.4.
Minor release of Yii Console package was tagged:
serve command and it serves at 127.0.0.1 by default instead of localhost.Three RBAC packages are released in their initial stable version: rbac, rbac-php, and rbac-rules-container.
These packages provide RBAC (Role-Based Access Control) library. They are used in Yii Framework but is usable separately as well. Main features are:
First version of Yii Framework Bulma Integration package was released.
This Yii Framework package encapsulates Bulma components and plugins in terms of Yii widgets, and thus makes using Bulma components/plugins in Yii applications convenient.
Test Support package version 1.4.0 was released. There a few changes in SimpleContainer::has() method:
\Yiisoft\Test\Support\Container\Exception\NotFoundException instead of \Throwable.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,
],
],
//...
Version 5.0.0 of View package is released. There a few bugs fixed, some additions and a few backwards incompatible changes:
ViewInterface.ViewContext, was added.First release of RoadRunner adapter for Yii Runner was tagged.
Despite popular belief, PHP application doesn't have to die and re-initilize every request and, thanks to RoadRunner Yii3 application could work in "initilize once" mode. There are multiple profits in using RoadRunner:
First release of Yii Runner was tagged. A runner hides application initialization details making configuration process easier.
For example, instead of complicated initialization, the following is enough for HTTP application's index.php:
<?php
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.
]
//...
yiisoft/access package got minor version release.
This version adds simple DenyAll and AllowAll access checkers that correspondingly deny or allow access to everything.
Config package got a minor version.
It introduces ConfigInterface that is allowing one to customize the process of obtaining configs:
interface ConfigInterface
{
public function get(string $group): array;
public function has(string $group): bool;
}
Both router and its FastRoute adapter went stable. These are very central packages in Yii3.
The package provides PSR-7 compatible request routing and a PSR-15 middleware ready to be used in an application. Instead of implementing routing from ground up, the package provides an interface for configuring routes and could be used with an adapter package. Currently, the only adapter available is FastRoute.
Router has the following features:
User package got stable release. It provides convenient user identity management and access checking:
Translation message extractor got its first stable version. It is a command-line tool that allows automatically extracting translation IDs from PHP source files and writing them to one of the translator message sources.
Such message sources are a good raw material for the actual translation. You don't have to keep track of what messages are there in the source code since you can re-run ./yii translator/extract command once again to update the message source.
You can find more details in the package readme.
First stable version of Config package was tagged.
This Composer plugin provides assembling of configurations distributed with composer packages. It allows putting configuration needed to use a package right inside thus implementing a plugin system. The package becomes a plugin holding both the code and its configuration.
The package, despite its primary goal of being used in Yii3, is very flexible and allows to build various plugin systems. The config assembly plan is prepared on installing dependencies but the build itself if done runtime in an efficient manner simplifying debugging and development a lot. What is written in config files is what actually being executed so configuration errors displayed are helpful.
You can find more details and a usage guide in the package readme.
As usual, the package is covered with tests, has high mutation score and is checked with Psalm.