Download the PHP
package yii1x/validator without Composer
On this page you can find all versions of the php package
yii1x/validator. It is possible to download/install
these versions without Composer. Possible dependencies are resolved
automatically.
Vendor yii1x Package validator Short Description validator License
BSD-3-Clause
FAQ
After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.
Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.
In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories.
In this case some credentials are needed to access such packages.
Please use the auth.json textarea to insert credentials, if a package is coming from a private repository.
You can look here for more information.
Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
To use Composer is sometimes complicated. Especially for beginners.
Composer needs much resources. Sometimes they are not available on a simple webspace.
If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Yii 1.1 validation, extracted and modernized for PHP 8.3+.
Familiar validators. Zero framework lock-in.
What is it?
This package is the validation component from Yii 1.1, extracted and refactored to run on PHP 8.3+ without requiring the full Yii framework.
✅ Same validator behavior you know from Yii 1
✅ PHP 8 types and strict typing
✅ No CModel, no Yii::app(), no global state
✅ Validates any plain object
✅ File uploads use PSR-7 UploadedFileInterface
Full reference of validators and options: docs/rules.md.
Extending the validator (custom rule factories, DI): docs/extending.md.
Requirements
PHP ≥ 8.3
psr/http-message (used by the file validator)
Optional:
ext-intl — for validateIDN in the email and url validators
ext-mbstring — for multibyte-aware length validation
Installation
Usage
Scenarios, conditional rules, inline validators, the full rule list and every
option are documented in docs/rules.md.
Testing
Requires Docker Compose. No database is needed — the tests are pure unit tests.
Tests run automatically on GitHub Actions for every push and pull request to master — see .github/workflows/ci.yaml.
Migration from Yii 1
⚠️ This package is a standalone port, not a drop-in replacement. Some behavior differs from the original Yii 1.1 validators (date formats, file handling, attribute labels, and more).
Before upgrading a legacy codebase, read docs/migration-from-yii1.md.
License
Released under the BSD-3-Clause License.
Based on Yii 1.1 by Yii Software LLC
(BSD-3-Clause); portions copyright (c) 2025 Galtsev Timofey.
Composer command for our command line client (download client)This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free.Standard composer command
The package yii1x/validator contains the following files
Loading the files please wait ...
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.