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 View 10.0

Jun 28, 2024

Version 10.0 of Yii View package was released.

Changed logic of template file searching in ViewInterface::render():

  • the absolute path to the view file, e.g. "/path/to/view.php";
  • the name of the view starting with // to join the base path, e.g. "//site/index";
  • the name of the view starting with ./ to join the directory containing the view currently being rendered (i.e., this happens when rendering a view within another view), e.g. "./widget";
  • the name of the view without the starting // or ./ (e.g. "site/index"), so view file will be looked for under the view path of the context set via withContext() (if the context instance was not set withContext(), it will be looked for under the base path).

Removed ViewInterface::renderFile().

Changed exception from RuntimeException to LogicException when the view cannot be resolved in ViewInterface::render().

Yii View Renderer 7.0

Jun 22, 2024

Major version of Yii View Renderer were tagged.

In this version package renamed from yiisoft/yii-view to yiisoft/yii-view-renderer and made several changes:

  • only a full path can now be used as a layout;
  • changed package configuration parameters viewPath and layout to null;
  • refactored controller name extractor, now use greedy search of namespace items with "controller(s)" postfix.

See upgrading instructions with notes about upgrading package in your application to this major version.

Console application template 1.0.0

Jun 19, 2024

First stable version of console application template is released.

It is a console only application template that can be used to perform common tasks in a Yii application such as queue workers, websocket servers, running daily cron tasks or just manual commands.

Detailed readme is availabe in the package.

Requirements 1.0.0

Jun 15, 2024

First release of yiisoft/requirements package was done. It allows to check if a certain set of defined requirements is met.

<?php
require_once('/path/to/requirements/RequirementsChecker.php');

$config = [
    [
        'name' => 'PHP version',
        'mandatory' => true,
        'condition' => version_compare(PHP_VERSION, '7.4.0', '>='),
        'by' => '<a href="https://www.yiiframework.com">Yii Framework</a>',
        'memo' => 'PHP 7.4.0 or higher is required.',
    ],
    [
        'name' => 'PDO MySQL extension',
        'mandatory' => false,
        'condition' => extension_loaded('pdo_mysql'),
        'by' => 'All DB-related classes',
        'memo' => 'Required for MySQL database.',
    ],
    [
        'name' => 'Intl extension',
        'mandatory' => false,
        'condition' => $this->checkPhpExtensionVersion('intl', '1.0.2', '>='),
        'by' => '<a href="https://secure.php.net/manual/en/book.intl.php">Internationalization</a> support',
        'memo' => 'PHP Intl extension 1.0.2 or higher is required.'
    ],    
);

$requirementsChecker = new RequirementsChecker();

$result = $requirementsChecker
    ->check($config)
    ->getResult();
$requirementsChecker->render();
exit($result['summary']['errors'] === 0 ? 0 : 1);

Yii 2.0.50

May 30, 2024

We are pleased to announce the release of Yii Framework version 2.0.50.

Please refer to the instructions at https://www.yiiframework.com/download/ to install or upgrade to this version.

This release raises PHP requirements to 7.3.

Read more

Yii View Extension 6.1

May 28, 2024

Minor version of Yii View Extension was tagged. There are some improvements and fixes:

  • added layout specific injections;
  • implement lazy loading for injections;
  • added debug collector for yiisoft/yii-debug;
  • made viewPath in ViewRenderer constructor optional;

Read more

Yii View 9.0

May 28, 2024

Version 9.0 of Yii View package was released.

  • added View::getLocale() and WebView::getLocale() methods;
  • added immutable method ViewInterface::withTheme();
  • deprecated ViewInterface::withDefaultExtension() and ViewInterface::getDefaultExtension() in favor of withFallbackExtension() and getFallbackExtensions();
  • adjusted config to make View and WebView more configurable;

Read more

Yii Validator 1.4

May 22, 2024

Yii Validator package was updated with the following enhancements and new features:

  • added getFirstErrorMessagesIndexedByPath() and getFirstErrorMessagesIndexedByAttribute() methods to Result;
  • added rules for validating value types - boolean, float, integer, string;
  • added Result::add() method for merging other results to the base one;
  • added UniqueIterable rule;

Read more

Auth Client extension 2.2.16 released

May 10, 2024

We are very pleased to announce the release of Auth Client extension version 2.2.16.

  • Use appropriate exception if client does not exist
  • Add support to configure the OAuth2 access token location in requests and added a generic OAuth2 client
  • Add ability to configure OpenIdConnect cache duration, default is 1 week

See the CHANGELOG for details.

Twig extension 2.5.0 released

May 9, 2024

Version 2.5.0 of Twig extension for Yii 2 was released.

This version adds support for Twig 3.9. Note that there were many internal changes that might affect and break codebases using twig:

Internal functions (including twig_get_attribute) has been moved and renamed.
The internal working of twig does not store template state in the output buffer anymore.
This means if a custom twig function reads and modifies the output buffer, it might not work as expected.

See the CHANGELOG for details.

Yii User 2.2

May 7, 2024

Version 2.2 of Yii User package was released. There are some improvements and changes:

  • changed log level from warning to debug for LoginMiddleware;
  • raised minimum PHP version to 8.1;
  • allowed to use backed enumerations as permission name in CurrentUser::can() method;
  • added support for psr/http-message version ^2.0.

Yii Session 2.1

May 2, 2024

Minor version of Yii Session package is released.

  • Added support for psr/http-message version ^2.0.
  • Raised the minimum version of PHP to 8.0.

Queue extension 2.3.7 released

Apr 29, 2024

Version 2.3.7 of Queue extension for Yii 2 was released.

Changes in this release:

  • Add StatisticsProviderInterface to get statistics from queue

See the CHANGELOG for details.

Twig extension 2.4.3 released

Apr 29, 2024

Version 2.4.3 of Twig extension for Yii 2 was released.

Changes in this release:

  • Prevent Twig 3.9 from installing

See the CHANGELOG for details.

Support for Twig 3.9 will be added in the next major version - 2.5.

Yii Cache Library - APCu Handler 1.1

Apr 26, 2024

Minor version of Yii Cache Library - APCu Handler package was released.

The changes are related to dependencies:

  • Raise the minimum psr/simple-cache version to ^2.0|^3.0;
  • Raise the minimum PHP version to ^8.0.

Yii Validator 1.3

Apr 4, 2024

Yii Validator package was updated with the following enhancements and new features:

  • added methods addErrorWithFormatOnly() and addErrorWithoutPostProcessing() to Result object;
  • added Image validation rule;
  • added Date, DateTime and Time validation rules;
  • clarified psalm types in Result.

Yii Arrays 3.1

Apr 4, 2024

Minor version of Yii Arrays package is released.

  • Added ArrayHelper::parametrizedMerge() method that allows to merge two or more arrays recursively with specified depth.
  • Added ArrayrHelper::renameKey() method.
  • Removed null from return type of ArrayHelper::getObjectVars() method.
  • Minor ArrayableTrait refactoring.

Yii Hydrator 1.2

Apr 3, 2024

Minor version of Yii Hydrator package is released.

  • Added ToDateTime parameter attribute.
  • Added Trim, LeftTrim and RightTrim parameter attributes.
  • Raised the minimum version of PHP to 8.1.

Sphinx extension 2.0.16 released

Mar 21, 2024

We are very pleased to announce the release of Sphinx extension version 2.0.16. This release adds UINT_SET attribute type support and ensures compatibility with Sphinx 3 by running tests against it.

See the CHANGELOG for details.

Yii Cycle 1.0

Mar 21, 2024

One more package has been released. This time it's a wrapper around Cycle ORM for Yii ecosystem. Cycle is known for support both classic and daemonized PHP applications based for example on RoadRunner.

The package offers a set of console commands and tools for convinient work with DB migrations and schema.

Right before the release the decision was taken to move the part related with Yii Data adaptation to a separate package - Yii Data Cycle, similar to Yii Data DB. All of them will be released too soon enough. First Yii Data 2.0, then first releases of adapter packages will follow.

Just a reminder, using Yii Cycle in demo doesn't mean it's a recommended tool / default package for working with DB. You can also choose Yii DB for example.

Code coverage with tests, mutational index and static analysis level were increased to their maximum.

  • «
  • 1
  • 2
  • 3
  • 4
  • »
Get notified of news as soon as they are available using our RSS Feed.

Years

  • 2026 (43)
  • 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 383
  • 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)