talira

Compare

Webmozart AssertAssert (beberlei/assert)Respect\Validation
What it isAssertions to validate PHP method input and output with clear error messagesThin assertion library for input validation in PHP business models and librariesFluent validation engine for PHP with more than 150 validators
KindOpen sourceOpen sourceOpen source
Trust0.590.500.53
Stars764324256035
Last commit2026-11-172026-11-052026-10-02
LicenceMITBSD-2-ClauseMIT
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———
CompanyBernhard SchussekBenjamin EberleiRespect
Features
  • 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
  • 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
  • chainable fluent validation rules
  • 150+ tested validators
  • advanced exception handling
Limitations
  • Needs PHP 8.2 or later with the ctype, date and filter extensions