sebastianbergmann

object-reflector

sebastianbergmann

Allows reflection of object attributes, including inherited and non-public ones

AI 简介

这是一个用于PHP对象属性反射的轻量级工具库,支持访问继承自父类及非公开(private/protected)的属性。其核心功能是通过统一API安全地读取对象所有属性值,无需修改原有类结构或依赖魔术方法,同时保持类型安全与兼容性。适用于单元测试中验证私有状态、调试工具开发、序列化辅助以及框架内部的对象元数据分析等场景。

PHP
BSD 3-Clause "New" or "Revised" License
6.3k
Stars
3
Forks
4
Watchers
1
Issues

Star 增长

今日0
近 7 天0
近 30 天0
综合评分57.81
默认分支main