moccalotto/valit (packagist): Validate http requests, input-data and method arguments at runtime using self-documenting code
Keywords: test|validation|input|assert|expect|verification|guard|ensure|php