talira

Compare

Assert (beberlei/assert)Webmozart AssertRespect\Validation
What it isThin assertion library for input validation in PHP business models and librariesAssertions to validate PHP method input and output with clear error messagesFluent validation engine for PHP with more than 150 validators
KindOpen sourceOpen sourceOpen source
Trust0.500.590.53
Stars242576436035
Last commit2026-11-052026-11-172026-10-02
LicenceBSD-2-ClauseMITMIT
PricingFree and open sourceFree and open sourceFree and open source
Free tierYesYesYes
Self-hostable———
Ways to run it———
SOC 2———
HIPAA———
SSO———
API———
Plugins———
MCP server———
CompanyBenjamin EberleiBernhard SchussekRespect
Features
  • static assertion methods that throw on failure
  • nullOr and all helpers
  • fluent Assert::that() chains
  • lazy assertions that report every failure at once
  • custom exception messages and your own assertion class
  • Assertions that throw InvalidArgumentException with readable messages
  • Custom error messages with consistent placeholder ordering
  • nullOr and all variants of every assertion
  • Psalm assertion annotations and a native Psalm plugin for type inference
  • Overridable hooks for value formatting and failure reporting
  • chainable fluent validation rules
  • 150+ tested validators
  • advanced exception handling
Limitations
    • Needs PHP 8.2 or later with the ctype, date and filter extensions