loomsoftware/reflection
最新稳定版本:1.0.1
Composer 安装命令:
composer require loomsoftware/reflection
包简介
A ReflectionClass extension.
README 文档
README
A simple extension for the \ReflectionClass.
Installation
composer require loomsoftware/reflection
Usage
This library provides a clean way to instantiate Reflection Classes, without having to wrap your calls inside a
try/catch block, or worrying about exceptions.
use Loom\Reflection\Reflect;
$reflectionClass = Reflect::create($classNameThatMayOrMayNotExist);
The create static method will return either a \ReflectionClass or null, which you can then continue to use as you
normally would.
Methods
Get all properties with the selected Attribute. Returns: \ReflectionProperty[]:
$reflectionClass->getAllPropertiesWithAttribute(MyCustomAttribute::class);
统计信息
- 总下载量: 36
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2025-07-20