Yii Event 2.2
Yii Event version 2.2.0 was released. In this version:
- Change PHP constraint in
composer.jsonto8.1 - 8.5 - Minor refactoring of
CallableFactoryandListenerCollectionFactory - Raise minimum PHP version to
^8.1and refactor code
Yii Event version 2.2.0 was released. In this version:
composer.json to 8.1 - 8.5CallableFactory and ListenerCollectionFactory^8.1 and refactor codeYii Cache DB Handler version 1.1.0 was released. In this version:
yiisoft/db to ^2.08.1 - 8.5DbSchemaManager::$db property as readonlyYii Logging Library version 2.2.0 was released. In this version:
$levels parameter to Target constructor allowing log level filtering at instantiationext-psr to conflict section in composer.jsonAll targets were updated as well to allow $levels in constructor. Additionally:
categories, except and exportInterval setters to default config and replaced rotate by rename to rotate by copy.syslog() returned false.The first stable release of a powerful set of data displaying widgets is now available.
Yii DataView provides three flexible widgets for presenting data in web applications:
ListView — display data as a customizable list.Yii Data DB, a database query adapter for Yii Data, is now available.
This package provides a data reader implementation that bridges Yii DB with the Yii Data reading interface, making it easy to work with database queries in a flexible and consistent way.
QueryDataReader. Wraps database queries to provide pagination, sorting, and filtering capabilities.Yii Data 2 is now available, bringing major improvements and modernization to this package that provides generic data abstractions for reading, writing, and processing.
PHP 8.1+ required: modernized codebase with readonly properties and improved type safety.
Enhanced filtering: added Stringable support, nested value filtering, case-sensitive Like filter with matching modes, and new All/None filters.
Yii Middleware Dispatcher version 5.4.0 was released. In this version:
Yii HTML version 3.12.0 was released. In this version:
Tag::addStyle() and Tag::removeStyle() methodsColor class, Html::color() and Input::color() methodsRadioList::renderUncheckInput() and CheckboxList::renderUncheckInput() methodsYii Caching Library version 3.2.0 was released. In this version:
Ttl value object for working with time-to-live durationYii DB Migration version 2.0.0 was released. In this version:
--force-yes (-y) option to migrate:create, migrate:up, migrate:down and migrate:redoColumnBuilder class to create table column definitions8.1 - 8.5 (@Tigrov,ext-filter from require section of composer.jsonWe are pleased to present the first stable release of Yii Active Record — an implementation of the Active Record pattern for PHP.
The package is built on top of Yii DB, which means it comes with out-of-the-box support for major relational databases: PostgreSQL, MySQL, MSSQL, Oracle, SQLite.
Flexible Model Property Handling
We're excited to announce Yii Database 2.0, a major release modernizing the database abstraction layer with PHP 8.1+ features, enhanced type safety, and powerful new capabilities. The drivers have been released as well: PostgreSQL, MySQL/MariaDB, MSSQL, Oracle and SQLite.
New Features
ColumnInterface classes according to the data type of database table columnsConnectionProvider for connection managementColumnBuilder for column creationCaseX expression for CASE-WHEN-THEN-ELSE statementsYii Test Support version 3.1.0 was released. In this version:
Yii Files version 2.1.0 was released. In this version:
filter option for FileHelper::clearDirectory()composer.json to 8.0 - 8.5PathMatcher::only() and PathMatcher::except() methods move a type hints from annotationFileHelper and PathMatcherYii Friendly Exceptionn version 1.2.0 was released. In this version:
composer.json to 7.4.* || 8.0 - 8.5Yii Security version 1.2.0 was released. In this version:
PasswordHasher::needsRehash() methodYii HTTP version 1.3.0 was released. In this version:
composer.json to 7.4.* || 8.0 - 8.5HeaderValueHelper methods' annotationsHeaderValueHelper::getSortedValueAndParameters()preg_replace_callback() in HeaderValueHelper::getParameters()Yii Strings version 2.7.0 was released. In this version:
NumericHelper::convertHumanReadableSizeToBytes() methodStringHelper::truncateWordsByLength() method to truncate text by character length while preserving word Yii JSON version 1.1.0 was released. In this version:
composer.json to ~7.4.0 || 8.0 - 8.5Json::encode() method by 10-20%DateTime classYii Form version 1.5.0 was released. In this version:
Color fieldFieldset field HTML markup