loomsoftware/reflection 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

loomsoftware/reflection

最新稳定版本:1.0.1

Composer 安装命令:

composer require loomsoftware/reflection

包简介

A ReflectionClass extension.

README 文档

README

Coverage 100.00% Version 1.0.0 License GPL-3.0-or-later

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2025-07-20