{"id":86615,"library":"webmozart-assert","title":"Webmozart Assert","description":"A PHP library for validating method inputs and outputs with descriptive error messages.","status":"active","version":"2.4.1","language":"php","source_language":null,"source_url":"https://github.com/webmozarts/assert","tags":["assertions","validation","utility","php"],"install":[{"cmd":"composer require webmozart/assert","lang":"bash","label":"composer require"}],"dependencies":[],"imports":[{"symbol":"Assert","correct":"use Webmozart\\Assert\\Assert;"}],"quickstart":{"code":"use Webmozart\\Assert\\Assert;\n\nfunction divide(int $a, int $b): float\n{\n    Assert::notEq($b, 0, 'Division by zero is not allowed.');\n    return $a / $b;\n}\n\necho divide(10, 2); // 5","lang":"php","description":"Validate that a divisor is not zero."},"warnings":[],"env_vars":null,"search_vec":"'assert':2,16 'descript':13 'error':14 'input':9 'librari':5 'messag':15 'method':8 'output':11 'php':4,19 'util':18 'valid':7,17 'webmozart':1","created_at":"2026-06-19T08:04:50.634642+00:00","updated_at":"2026-06-19T08:04:50.634642+00:00","problems":[],"ecosystem":"packagist","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/webmozarts/assert","github":"https://github.com/webmozarts/assert","docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-19","next_check":"2026-12-16","install_tag":null}}