View 2.1.0
Version 2.1.0 of View package is released. Immutable methods View::withAddedCommonParameters() and WebView::withAddedCommonParameters() are now available to add extra parameters available in all views and their sub-views.
Version 2.1.0 of View package is released. Immutable methods View::withAddedCommonParameters() and WebView::withAddedCommonParameters() are now available to add extra parameters available in all views and their sub-views.
Mailer package version 3.0.0 was tagged. This version expands Yiisoft\Mailer\MessageInterface adding the following methods:
getDate() - Returns the date when the message was sent, or null if it was not set.withDate() - Returns a new instance with the specified date when the message was sent.getPriority() - Returns the priority of this message.withPriority() - Returns a new instance with the specified priority of this message.HTML package version 2.0.0 was released. In this release:
Em, Strong, B and I.null could be passed to Tag::class(), Tag::replaceClass(), BooleanInputTag::label() and BooleanInputTag::sideLabel(). Attribute won't be rendered.as() and preload() were added to the Link tag.Fisrt version of mutex package was released. This package provides mutex implementation and allows mutual execution of concurrent processes in order to prevent "race conditions". This is achieved by using a "lock" mechanism. Each possibly concurrent processes cooperates by acquiring a lock before accessing the corresponding data.
There are multiple ways you can use the package. You can execute a callback in a synchronized mode i.e. only a single instance of the callback is executed at the same time:
/** @var \Yiisoft\Mutex\Synchronizer $synchronizer */
$newCount = $synchronizer->execute('critical', function () {
return $counter->increase();
}, 10);
Major version of yiisoft/rate-limiter package was released.
It introduces new package design proposed by kafkiansky:
LimitPolicyInterface is there to easily change the policy of rate limiting i.e. while requests apply limiting to.StorageInterface is there to use custom storage for request counters.TimerInterface allowed us to rewrite tests not to use usleep() making them stable.See UPGRADE for instructions on how to adjust your code if you are using first version of the package.
We are pleased to announce the release of Smarty extension version 2.0.10.
This is bugfix release that fixes PHP 8 compatibiltiy and a wrong method call error when setting template directory.
We are very pleased to announce the release of MongoDB extension version 2.1.12. The version uses proper CSRNG when performing garbage collection.
See the CHANGELOG for details.
We are very pleased to announce the release of HTTP client extension version 2.0.14. This release:
UrlEncodedFormatter::format()random_int() when generating boundary.See the CHANGELOG for details.
We are very pleased to announce the release of Gii extension version 2.2.3. This release adds the following enhancements:
allowedIPs.See the CHANGELOG for details.
We are very pleased to announce the release of ElasticSearch extension version 2.1.2. This release is using proper CSRNG when choosing connection.
See the CHANGELOG for details.
Debug extension version 2.1.18 was released.
This release adds CIDR support for allowedIPs.
See the CHANGELOG for details.
We are very pleased to announce the release of Bootstrap extension version 2.0.11. This version adds support of custom templates for Tab headers and panes.
See the CHANGELOG for details.
We are very pleased to announce the release of Auth Client extension version 2.2.11.
This release adds statusCode from response to init InvalidResponseException in sendRequest method of yii\authclient\BaseOAuth class. Also, CSPRNG is now used when generating OAuth1 nonce.
See the CHANGELOG for details.
We are very pleased to announce the release of Yii Framework version 2.0.43. Please refer to the instructions at https://www.yiiframework.com/download/ to install or upgrade to this version. This release includes a number of bug fixes as well as security enhancements and feature enhancements.
Thanks to all Yii community members who contribute to the framework, translators who keep documentation translations up to date and community members who answer questions at forums.
There are many active Yii communities so if you need help or want to share your experience, feel free to join them.
A complete list of changes can be found in the CHANGELOG.
First version of Bootstrap 5 extension for Yii 2 was released. It is similar to Bootstrap and Bootstrap 4 extensions and is meant to support newer Bootstrap CSS framework version.
Documentation is available in extension repository.
Big thanks to simialbi for preparing the package.
First version of email log target package was released.
This package provides the email target for the yiisoft/log allowing to send logs via email.
First releases of mailer package and its SwiftMailer adapter were released.
The mailer package provides the content composition functionality, and a basic interface for sending emails. Actual mail sending is provided by separate interchangeable packages.
The following code can be used to send an email:
First stable version of Yii View Extension was released.
The package is an extension of the Yii View Rendering Library. It adds WEB-specific functionality and compatibility with PSR-7 interfaces.
First stable version of View Twig Renderer was released. The package is an extension of the Yii View Rendering Library. This extension provides a ViewRender that would allow you to use Twig view template engine.
Check package readme for details.
First version of View package is released. This library provides templates rendering abstraction supporting layout-view-subview hierarchy, custom renderers with PHP-based as default and more. It is used in Yii Framework 3 but is supposed to be usable separately.
PHP templates look like the following:
<?php