定制 runopencode/metadata 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

runopencode/metadata

最新稳定版本:0.1.39

Composer 安装命令:

composer require runopencode/metadata

包简介

Utility to read/search for class/property/method metadata (attributes).

README 文档

README

This is a read-only repository of mono-repository sub-split from https://github.com/RunOpenCode/phplib. Do not send PR or report issues against this repository, use the one referenced with previously given URL.

Metadata is a small utility library which allows us to search for metadata (attributes) in classes/properties/methods. Instead of using PHP's native reflection API and manual traversal, this library uses caching and is optimized for performance.

In general, this library is helpful in providing, in example, these questions:

  • Does this class have specific attribute? Give me that attribute instance.
  • Does this class have property/method with specific attribute? Give me that property/method and attribute instance.
  • Give me all properties/methods with specific attribute.
  • etc.

Using this library, it is trivial to implement various metadata-based features, such as serialization, validation, mapping, etc. Doctrine behaviors, such as Timestampable, Blameable, etc. can be implemented using this library as well, with less boilerplate code.

Resources

统计信息

  • 总下载量: 15
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-10-08