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 Validator 2.6.0

Jun 2, 2026

Yii Validator version 2.6.0 was released.

This release adds a new File validator, extends Image validator input support, and includes translation, documentation, and internal code quality improvements.

File validator ΒΆ

Read more

Yii Validator 2.5

Jul 19, 2025

Yii Validator version 2.5 was released.

In this version added Result::getPropertyErrorMessagesByPath() method.

Yii Validator 2.4

Jul 7, 2025

Yii Validator version 2.4.0 was released. In this version:

  • Allow use callable rules into Nested
  • Support stringable objects as validation error messages
  • Fix WhenMissing not working in nested rules
  • Fix incorrect Nested rule processing within Each

Yii Validator 2.3

May 7, 2025

Version 2.3 of Yii Validator package has been released.

The Uuid validation rule was added in this version.

Yii Validator 2.2

Feb 16, 2025

Version 2.2 of Yii Validator package has been released. Here is the list of changes included in the new version:

  • Add stopOnError parameter to Each rule
  • Change PHP constraint in composer.json to ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0
  • Bump yiisoft/strings version to ^2.6
  • Minor refactoring with PHP 8.1 features usage

Read more

Yii Validator 2.1

Sep 12, 2024

Version 2.1 of Yii Validator package has been released. Here is the list of changes included in the new version:

  • merge rules from PHP attributes with rules provided via getRules() method;
  • use Yiisoft\NetworkUtilities\IpRanges in Ip rule: add getIpRanges() method and deprecate getRanges(), getNetworks(), isAllowed() methods;
  • use NEGATION_CHARACTER constant from network-utilities package in IpHandler instead of declaring its own constant.

Yii Validator 2.0

Aug 2, 2024

Major version of Yii Validator were tagged.

  • Add the Each::PARAMETER_EACH_KEY validation context parameter that available during Each rule handling and containing the current key
  • Include attribute name in error messages when it's present
  • Add PHP attribute that sets property label for usage in error messages
  • Add InEnum rule

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

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 Validating Hydrator 2.0

Mar 6, 2024

Major release of yiisoft/hydrator-validator was tagged.

  • Throws LogicException on call ValidatedInputInterface::getValidatedInput() method when object is not validated.

Yii Validator 1.2

Feb 21, 2024

Yii Validator package was updated with the following enhancements and fixes:

  • added debug collector for yiisoft/yii-debug;
  • added $escape parameter to methods Result::getAttributeErrorMessagesIndexedByPath() and Result::getErrorMessagesIndexedByPath() that allow change or disable symbol which will be escaped in value path elements;
  • added OneOf rule;
  • minor refactoring of EmailHandler::validate() method;

Read more

Yii Validating Hydrator 1.0

Feb 2, 2024

First stable release of yiisoft/hydrator-validator was tagged.

The package provides a hydrator that also does validation, including raw data. It's useful when input data comes from a user, and you need to validate it and then put it into DTOs.

To use it, the object being validated must implement ValidatedInputInterface. You can use ValidatedInputTrait to easily create such object. The validation rules for raw values of the object are defined with Validate PHP attribute.

Read more

Validator 1.1

Apr 6, 2023

Minor version (1.1.0) of Validator package has been released.

See CHANGELOG.md for the list of changes.

Validator 1.0

Feb 22, 2023

The first stable version of yiisoft/validator was released.

This package allows to check data in any format - arrays, objects, scalar values, etc. An example for the case when data is an object:

use Yiisoft\Validator\Rule\AtLeast;
use Yiisoft\Validator\Rule\Email;
use Yiisoft\Validator\Rule\Length;
use Yiisoft\Validator\Rule\Number;
use Yiisoft\Validator\Rule\Required;
use Yiisoft\Validator\Validator;

Read more

Get notified of news as soon as they are available using our RSS Feed.

Years

  • 2026 (48)
  • 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 387
  • extensions 233
  • release 109
  • yii2 74
  • 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)