NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist
A lightweight collection of reusable validators for Utopia projects
Latest stable
2.0.0
Last release 1 months ago
08 Oct 2026
Release timing varies
gaps range from 1 weeks to 3 months
Nearly every release is documented
notes for 24 of 24 stable releases
Nothing withdrawn
no release was ever pulled
1 years old
24 releases · first in 2025
Drag across the ruler to compare, or tap a release to open it.
First release cut from `packages/validators` in appwrite/appwrite.
First release cut from packages/validators in appwrite/appwrite.
The classes that lived in the bare Utopia\ namespace move under Utopia\Validator\ (appwrite/appwrite#14263):
| Before | After |
|---|---|
Utopia\Validator |
Utopia\Validator\Validator |
Utopia\PHPStan\DisallowAssertEqualsExtension |
Utopia\Validator\PHPStan\DisallowAssertEqualsExtension |
The package now autoloads Utopia\Validator\ from src/ and requires PHP 8.5.
src/compat.php, loaded through autoload.files, keeps the old names working:
Utopia\Validator is aliased up front. Code that extends it or is typed against it keeps working, and validators built on either name pass type checks against the other.The aliases will be removed in 3.0.0, so move imports to the new names before then. Every other class (Text, Hostname, URL, and so on) keeps its name, so code that only uses those can accept ^1.0 || ^2.0.
Changes: https://github.com/appwrite/appwrite/compare/5ebc928d12daed88bb3c00d1a274e758c84c5819~1...validators/2.0.0
chore: stop committing package lock files
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Changes: https://github.com/utopia-php/monorepo/compare/validators/1.0.0...validators/1.0.1
No changes to this package since validators/0.7.0.
Changes: https://github.com/utopia-php/monorepo/compare/validators/0.7.0...validators/1.0.0
fix(validators): Assoc declares an object, not an array
Changes: https://github.com/utopia-php/monorepo/compare/validators/0.6.0...validators/0.7.0
fix(validators): apply automated code checks
Changes: https://github.com/utopia-php/monorepo/compare/validators/0.5.0...validators/0.6.0
validators: let Text require non-blank values
Changes: https://github.com/utopia-php/monorepo/compare/validators/0.4.2...validators/0.5.0
fix(validators): reject trailing newline in Identifier
Changes: https://github.com/utopia-php/monorepo/compare/validators/0.4.1...validators/0.4.2
Identifier validator. Extends Text and additionally requires a C-style
identifier (^[A-Za-z_][A-Za-z0-9_]*$): letters, digits and underscores only,
not starting with a digit. This is the shape required of environment variable
names and shell identifiers, so a value that passes a plain length check but
contains a tab, a space or an accented letter is rejected. Accepts an optional
int $length (0 = unlimited); minimum length is 1.No changes to this package since validators/0.4.0.
Changes: https://github.com/utopia-php/monorepo/compare/validators/0.4.0...validators/0.4.1
feat(validators): add phone validator
Changes: https://github.com/utopia-php/monorepo/compare/validators/0.3.2...validators/0.4.0
Phone validator for E.164 phone number syntax. It validates values with a
leading + followed by 7 to 15 digits, supports optional empty strings through
allowEmpty, and can opt in to URL/path recovery through normalize.feat(validators): add JSON object and array shape validators
Changes: https://github.com/utopia-php/monorepo/compare/validators/0.3.1...validators/0.3.2
JSON\ObjectValidator and JSON\ArrayValidator validators for JSON shape checks.
Both accept decoded values or encoded JSON strings while preserving the distinction between
objects and arrays.chore(validators): align changelog heading to 0.3.1 release
Changes: https://github.com/utopia-php/monorepo/compare/validators/0.3.0...validators/0.3.1
bool $httpsOrLoopback = false (kept last
in the signature). When enabled, a standard (authority-bearing, non-private-use)
URL is valid only if its scheme is https on any host, or http on a loopback
host (localhost, 127.0.0.1, or [::1]); every other standard scheme and any
routable http host is rejected (RFC 8252 §7.3). Private-use scheme URIs
(governed by allowPrivateUseSchemes) are exempt. The flag is self-contained and
independent of allowedSchemes — when both are set, a value must satisfy both.
getDescription() reflects the restriction when the flag is on.The change is backward compatible: httpsOrLoopback defaults to false, so
existing callers are unaffected, and the behavior of allowedSchemes and
allowPrivateUseSchemes (including how allowedSchemes restricts which
private-use schemes are accepted) is unchanged.
chore(validators): conform package to PHP 8.5 rector/pint rule sets
Changes: https://github.com/utopia-php/monorepo/compare/validators/0.2.8...validators/0.3.0
refactor: apply baseline rector to packages that lacked a config
Changes: https://github.com/utopia-php/monorepo/compare/validators/0.2.7...validators/0.2.8
refactor(monorepo): simplify absorb/sync flows (-635 LoC)
Changes: https://github.com/utopia-php/monorepo/compare/validators/0.2.6...validators/0.2.7
First release cut from the utopia-php monorepo.
First release cut from the utopia-php monorepo.
Add URL fragment validation option by @ChiragAgg5k in https://github.com/utopia-php/validators/pull/11
Full Changelog: https://github.com/utopia-php/validators/compare/0.2.4...0.2.5
feat: add Glob validator with gitignore-style pattern matching by @HarshMN2345 in https://github.com/utopia-php/validators/pull/10
Full Changelog: https://github.com/utopia-php/validators/compare/0.2.3...0.2.4
Feat: Contains validator by @Meldiron in https://github.com/utopia-php/validators/pull/9
Full Changelog: https://github.com/utopia-php/validators/compare/0.2.2...0.2.3
feat(Domain): add allowEmpty constructor option by @Copilot in https://github.com/utopia-php/validators/pull/8
allowEmpty constructor option by @Copilot in https://github.com/utopia-php/validators/pull/8Full Changelog: https://github.com/utopia-php/validators/compare/0.2.1...0.2.2
Add $allowEmpty parameter to URL validator by @Copilot in https://github.com/utopia-php/validators/pull/7
$allowEmpty parameter to URL validator by @Copilot in https://github.com/utopia-php/validators/pull/7Full Changelog: https://github.com/utopia-php/validators/compare/0.2.0...0.2.1
Disallow assertEquals through PHPStan by @hmacr in https://github.com/utopia-php/validators/pull/4
Full Changelog: https://github.com/utopia-php/validators/compare/0.1.0...0.2.0
Fix domain validate by @abnegate in https://github.com/utopia-php/validators/pull/2
Full Changelog: https://github.com/utopia-php/validators/compare/0.0.2...0.1.0
Full Changelog: https://github.com/utopia-php/validators/commits/0.0.2
Full Changelog: https://github.com/utopia-php/validators/commits/0.0.2
Full Changelog: https://github.com/utopia-php/validators/commits/0.0.1
Full Changelog: https://github.com/utopia-php/validators/commits/0.0.1
One column per month.