Object-Reflector is a PHP library that provides reflection capabilities for object attributes, including inherited and non-public ones.
The library solves the problem of accessing and inspecting object properties that are not directly accessible through standard PHP reflection mechanisms. It works by providing a dedicated interface for reflecting on object attributes across the entire inheritance hierarchy, allowing developers to examine private, protected, and public properties regardless of where they are defined in a class hierarchy.
Developers should choose this tool when working with complex object structures where understanding the full set of attributes—including those inherited from parent classes or marked as non-public—is necessary. It suits projects that require deep introspection of objects, such as debugging tools, serialization frameworks, testing utilities, or frameworks that need to understand object state comprehensively. The README does not name alternative approaches or competing libraries, so no comparison is available.
The project maintains a focused scope with minimal external dependencies, keeping the codebase lean and straightforward. Development activity shows consistent attention to code quality and maintenance practices typical of a utility library serving as infrastructure for other tools.