PackageTrack
Sign in Get early access

utopia-php/validators

A lightweight collection of reusable validators for Utopia projects

0.5.0 307K downloads/mo #3554 most downloaded on Packagist utopia-php/validators

What this package is like to depend on

Last release 9 days ago

14 Aug 2026

Release timing varies

gaps range from 1 weeks to 3 months

Some releases are documented

notes for 10 of 19 stable releases

Nothing withdrawn

no release was ever pulled

10 months old

19 releases · first in 2025

18 releases in the last 12 months

see the full history below

Release timeline

18 releases · Oct 2025 to Aug 2026
2026
Release Pre-release

Releases

latest 19
  1. 0.5.0 14 Aug 2026
    Release notes
    • validators: let Text require non-blank values

    Changes: utopia-php/monorepo@validators/0.4.2...validators/0.5.0

    Open source →
  2. 0.4.2 11 Aug 2026
    Release notes
    • fix(validators): reject trailing newline in Identifier
    • style(validators): satisfy pint and rector on Identifier
    • chore: change identifiers
    • Merge remote-tracking branch 'origin/main' into feat/validators-identifier
    • feat(validators): add Identifier validator

    Changes: utopia-php/monorepo@validators/0.4.1...validators/0.4.2

    Open source →
    Release notes

    Added

    • New 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.
    Open source →
  3. 0.4.1 10 Aug 2026
    Release notes
    • No changes to this package since validators/0.4.0.

    Changes: utopia-php/monorepo@validators/0.4.0...validators/0.4.1

    Open source →
  4. 0.4.0 07 Aug 2026
    Release notes
    • feat(validators): add phone validator

    Changes: utopia-php/monorepo@validators/0.3.2...validators/0.4.0

    Open source →
    Release notes

    Phone validator

    Added

    • New 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.
    Open source →
  5. 0.3.2 no date
    Release notes
    • feat(validators): add JSON object and array shape validators
    • docs: centralize CODE_OF_CONDUCT and CONTRIBUTING at the monorepo root
    • docs: enforce documentation style with Vale

    Changes: utopia-php/monorepo@validators/0.3.1...validators/0.3.2

    Open source →
    Release notes

    JSON shape validators

    Added

    • New 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.
    Open source →
  6. 0.3.1 14 Jul 2026
    Release notes
    • chore(validators): align changelog heading to 0.3.1 release
    • Improve valiator compatibility between params behaviour
    • Support https enforcement on url validator

    Changes: utopia-php/monorepo@validators/0.3.0...validators/0.3.1

    Open source →
    Release notes

    URL validator — OAuth2 secure-redirect transport policy

    Added

    • New optional constructor parameter 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.

    Open source →
  7. 0.3.0 13 Jul 2026
    Release notes
    • chore(validators): conform package to PHP 8.5 rector/pint rule sets
    • Use new URI class
    • feat(url): support private-use URI scheme redirect URIs (RFC 8252)
    • ci: pin root toolchain and fix package checks
    • ci: redirect mirror issues
    • ci: reuse mirror redirect workflow

    Changes: utopia-php/monorepo@validators/0.2.8...validators/0.3.0

    Open source →
  8. 0.2.8 26 Jun 2026
    Release notes
    • refactor: apply baseline rector to packages that lacked a config
    • build: hoist baseline rector + phpstan configs to the root

    Changes: utopia-php/monorepo@validators/0.2.7...validators/0.2.8

    Open source →
  9. 0.2.7 20 Jun 2026
    Release notes
    • refactor(monorepo): simplify absorb/sync flows (-635 LoC)
    • Pin all workflow actions to SHAs with ratchet, enforce in CI

    Changes: utopia-php/monorepo@validators/0.2.6...validators/0.2.7

    Open source →
  10. 0.2.6 10 Jun 2026
    Release notes

    First release cut from the utopia-php monorepo.

    Open source →
  11. 0.2.5 10 Jun 2026

    Nothing published for this version

  12. 0.2.4 21 May 2026

    Nothing published for this version

  13. 0.2.3 14 May 2026

    Nothing published for this version

  14. 0.2.2 27 Apr 2026

    Nothing published for this version

  15. 0.2.1 27 Apr 2026

    Nothing published for this version

  16. 0.2.0 13 Jan 2026

    Nothing published for this version

  17. 0.1.0 18 Nov 2025

    Nothing published for this version

  18. 0.0.2 20 Oct 2025

    Nothing published for this version

  19. 0.0.1 20 Oct 2025

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive