Html 1.1.0
A minor version of Html package was tagged. In this version there are two additions:
Brtag.- Table markup related tags.
A minor version of Html package was tagged. In this version there are two additions:
Br tag.An update was made to yiisoft/var-dumper package.
Starting with this version it can export closures and objects with closures.
First stable version of Html package was tagged. The package could be used both along with Yii 3 or separately.
It is a handy library to generate HTML dynamically:
<?= Html::p()->class('float-right')->content(
'Powered by ',
Html::a(
'Yii Framework',
'https://www.yiiframework.com/',
['rel' => 'external']
)
) ?>
Test support package version 1.3.0 was released.
New version adds implementation of PSR logger that accumulates all the logged messages and can return these as array:
$logger = new Yiisoft\Test\Support\Log\SimpleLogger();
$logger->emergency('Emergency message', ['key' => 'value']);
$logger->alert('Alert message', ['key' => 'value']);
$logger->critical('Critical message', ['key' => 'value']);
$logger->error('Error message', ['key' => 'value']);
$logger->warning('Warning message', ['key' => 'value']);
$logger->notice('Notice message', ['key' => 'value']);
$logger->info('Info message', ['key' => 'value']);
$logger->debug('Debug message', ['key' => 'value']);
$messages = $logger->getMessages();
Test support package version 1.2.1 was released.
New version makes it compatible with PSR-11 Container v1.1 and v2.0.
The change is fully backwards compatible so update should not break anything.
Injector package version 1.0.4 was released.
New version makes it compatible with PSR-11 Container v1.1 and v2.0.
The change is fully backwards compatible so update should not break anything.
First version of network utilities package was tagged.
It has two helper classes, IpHelper to work with IPs and network masks, and DnsHelper to check DNS records.
The package does not depend on Yii and can be used by requiring it via Composer:
composer require yiisoft/network-utilities
Code is well-covered with tests, types and has 100% mutation score.
We are very pleased to announce the release of Yii Framework version 2.0.41. Please refer to the instructions at https://www.yiiframework.com/download/ to install or upgrade to this version.
Notable changes in this release:
authKey change. Note that it requires properly implemented getAuthKey() and validateAuthKey() methods of yii\web\IdentityInterface. Check upgrade guide for details.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 release of CSRF package was tagged. The package provides PSR-15 middleware for CSRF protection:
Extensive documentation is available.
Two minor versions of test support package were tagged. Both are about event dispatcher:
SimpleEventDispatcher::clearEvents() that clear all events in event dispatcher.SimpleEventDispatcher::getEventClasses() that return classes of dispatched events.First version of event dispatcher package was tagged. The dispatcher provides an ability to dispatch events and listen to events dispatched. It is:
Usage description and examples are available in the package readme.
First verisons of yiisoft/log and some of the drivers called "targets" were released.
Log is PSR-3 compatible so using it in your apps is easy:
final class MyClass
{
private \Psr\Log\LoggerInterface $logger;
public function __construct(\Psr\Log\LoggerInterface $logger)
{
$this->logger = $logger;
}
public function doIt(): void
{
$this->logger->info('Doing it!');
// ...
}
}
First version of yiisoft/auth-jwt package was released. The package provides JWT authentication method for Yii Auth.
Configuration instructions are provided in the readme of the package.
First stable version of yiisoft/var-dumper package was released.
It enhances functionality of var_dump() and var_export() by dealing with recursive references,
syntax highlighting and closures export.
It also provides convenient d() and dd() functions that may be used for quick dump-and-die style debugging.
First versions of yiisoft/files package was released. The package provides useful methods to manage files and directories.
A major version of strings package was released. The changes are about \Yiisoft\Strings\WildcardPattern.
** was introduced and the class was overall simplified.
It is not backwards compatible with 1.x.x versions so check upgrade guide if you decide to upgrade.
More details could be found in the package CHANGELOG.
First version of request body parser package was released. The package is a PSR-15 middleware that allows parsing PSR-7 server request body selecting the parser according to the server request mime type.
Out of the box it parses application/json requests where JSON is in the body. More parsers for mime types could be added by implementing a very simple ParserInterface.
Check README for details.
First versions of cache package and its drivers were released.
Main library is to be used as a wrapper around PSR-16 compatible caching libraries. We call these drivers. It adds an ability to set default TTL and key prefix per cache instance, provides a built-in behavior to cache stampede prevention, and adds cache invalidation dependencies on top of PSR-16. Check the details in README.
The following drivers were released along with main package:
First stable release of arrays package was tagged.
The package provides:
ArrayHelper that has static methods to work with arrays;ArraySorter that has static methods for sort arrays;ArrayAccessTrait provides the implementation for
\IteratorAggregate,
\ArrayAccess and
\Countable;ArrayableInterface and ArrayableTrait for use in classes who want to support customizable representation of their instances.As usual with Yii 3 packages, there is 100% unit test coverage, high level of Psalm static analysis and high MSI mutation score. The package isn't dependent on the framework so could be either used as part of Yii or separately.
A minor version of strings package was released:
StringHelper::split() that split a string to array with non-empty lines.NumericHelper::isInteger() that checks whether the given string is an integer number.NumericHelper::normalize().More details could be found in the package CHANGELOG.