yii1x / validator
validator
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/yii1x/validator
Requires
- php: ^8.3
- psr/http-message: ^2.0
Requires (Dev)
- phpunit/phpunit: ^12.0
This package is auto-updated.
Last update: 2026-02-24 15:14:42 UTC
README
This package provides the validation functionality from Yii 1.1 as a standalone component.
It can be used independently of the rest of the framework — perfect for legacy projects or when you need Yii-style validation in modern PHP applications.
Installation
Install via Composer:
composer require yii1x/validator
Migration Notice
⚠️ Migration from Yii1
The DateValidator format syntax has changed from Yii1 (MM/dd/yyyy) to PHP-native (m/d/Y).
After upgrading, review and update your format strings to match PHP DateTime masks.
License
This package is released under the BSD License, the same license used by the Yii1 framework.