{"id":89545,"library":"granam-strict-object","title":"Strict Object","description":"Base object that checks access to undefined properties and methods, enforcing strict behavior.","status":"active","version":"3.1.0","language":"php","source_language":null,"source_url":"https://github.com/granam/strict-object","tags":["strict","object","validation","error-checking"],"install":[{"cmd":"composer require granam/strict-object","lang":"bash","label":"composer require"}],"dependencies":[],"imports":[{"symbol":"StrictObject","correct":"use Granam\\Strict\\Object\\StrictObject;"}],"quickstart":{"code":"use Granam\\Strict\\Object\\StrictObject;\n\nclass MyClass extends StrictObject {\n    public $allowedProperty = 'value';\n}\n\n$obj = new MyClass();\necho $obj->allowedProperty; // works\n$obj->undefinedProperty; // throws exception","lang":"php","description":"Extend StrictObject to enforce strict property access."},"warnings":[{"fix":"Ensure all properties and methods are defined before use, or catch exceptions.","message":"Accessing undefined properties or methods throws exceptions, which may break existing code.","severity":"breaking","affected_versions":">=3.0.0"}],"env_vars":null,"search_vec":"'access':7 'base':3 'behavior':15 'check':6,21 'enforc':13 'error':20 'error-check':19 'method':12 'object':2,4,17 'properti':10 'strict':1,14,16 'undefin':9 'valid':18","created_at":"2026-06-19T08:48:44.454626+00:00","updated_at":"2026-06-19T08:48:44.454626+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/jaroslavtyc/granam-strict-object","github":"https://github.com/granam/strict-object","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}}