PHPackages                             orisai/reflection-meta - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. orisai/reflection-meta

ActiveLibrary

orisai/reflection-meta
======================

PHP reflection in more reliable and deterministic way - for declarative engines

1.0.5(12mo ago)134.7k—7.7%1MPL-2.0PHPPHP 7.4 - 8.4CI passing

Since Jul 7Pushed 10mo ago1 watchersCompare

[ Source](https://github.com/orisai/reflection-meta)[ Packagist](https://packagist.org/packages/orisai/reflection-meta)[ Docs](https://github.com/orisai/reflection-meta)[ RSS](/packages/orisai-reflection-meta/feed)WikiDiscussions v1.x Synced 1mo ago

READMEChangelogDependencies (14)Versions (7)Used By (1)

 [![Orisai](https://github.com/orisai/.github/raw/main/images/repo_title.png?raw=true)](https://github.com/orisai/.github/blob/main/images/repo_title.png?raw=true)
 Reflection Meta
======================================================================================================================================================================================

[](#reflection-meta)

 PHP reflection in more reliable and deterministic way - for declarative engines

 📄 Check out our [documentation](docs/README.md).

 💸 If you like Orisai, please [make a donation](https://orisai.dev/sponsor). Thank you!

 [![](https://github.com/orisai/reflection-meta/actions/workflows/ci.yaml/badge.svg?branch=v1.x)](https://github.com/orisai/reflection-meta/actions?query=workflow:CI+branch:v1.x) [![](https://camo.githubusercontent.com/7cd1ee3e9c7228224da205e507b9f93c452dedb4ae46f09421df23dd64cea390/68747470733a2f2f62616467656e2e6e65742f636f766572616c6c732f632f6769746875622f6f72697361692f7265666c656374696f6e2d6d6574612f76312e783f63616368653d333030)](https://coveralls.io/github/orisai/reflection-meta?branch=v1.x) [![](https://camo.githubusercontent.com/10fc8a1a27f643230653cfb5e0cfd551957ee739a366bba5e58f4bad9c75e754/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742675726c3d68747470733a2f2f62616467652d6170692e737472796b65722d6d757461746f722e696f2f6769746875622e636f6d2f6f72697361692f7265666c656374696f6e2d6d6574612f76312e78)](https://dashboard.stryker-mutator.io/reports/github.com/orisai/reflection-meta/v1.x) [![](https://camo.githubusercontent.com/9e22a8b381d0e8f16e02823f3fe1e39dfdbac4a69d47bf6b9d56167e96a6ea0b/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f64742f6f72697361692f7265666c656374696f6e2d6d6574613f63616368653d33363030)](https://packagist.org/packages/orisai/reflection-meta) [![](https://camo.githubusercontent.com/0a20831e4c6b395c1e779f204b1227441ea22ac749b82fa31631d3e01ee7fb0d/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f762f6f72697361692f7265666c656374696f6e2d6d6574613f63616368653d33363030)](https://packagist.org/packages/orisai/reflection-meta) [![](https://camo.githubusercontent.com/40b2374865c7727b1568a7b77cc1a8068979ac265d85d659fe73b2d337b458e6/68747470733a2f2f62616467656e2e6e65742f62616467652f6c6963656e73652f4d504c2d322e302f626c75653f63616368653d33363030)](https://choosealicense.com/licenses/mpl-2.0/)

```
use Orisai\ReflectionMeta\Structure\StructureBuilder;
use Orisai\ReflectionMeta\Structure\StructureFlattener;
use Orisai\ReflectionMeta\Structure\StructureGrouper;
use ReflectionClass;

$reflector = new ReflectionClass(ExampleClass::class);
$hierarchy = StructureBuilder::build($reflector);
$list = StructureFlattener::flatten($hierarchy);
$group = StructureGrouper::group($list);

var_dump($group);
/*
StructureGroup(
	classes: [
		ClassStructure(ParentInterface),
		ClassStructure(ParentTrait),
		ClassStructure(ParentClass),
		ClassStructure(ExampleInterface),
		ClassStructure(ExampleTrait),
		ClassStructure(ExampleClass),
	],
	constants: [
		'::publicConstName' => [
			ConstantStructure(ExampleInterface, 'publicConstName'),
		],
		'::protectedConstName' => [
			ConstantStructure(ParentClass, 'protectedConstName'),
			ConstantStructure(ExampleClass, 'protectedConstName'),
		],
		'ParentClass::privateConstName' => [
			ConstantStructure(ParentClass, 'privateConstName'),
		],
	],
	properties: [
		'::publicPropertyName' => [
			PropertyStructure(ExampleClass, 'publicPropertyName'),
		],
		// ...
	],
	methods: [
		// ...
	],
)
*/
```

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance52

Moderate activity, may be stable

Popularity27

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~120 days

Recently: every ~45 days

Total

7

Last Release

315d ago

PHP version history (3 changes)1.0.0PHP &gt;=7.4.0 &lt;8.3.0

1.0.1PHP 7.4 - 8.3

1.0.2PHP 7.4 - 8.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/20974277?v=4)[Marek Bartoš](/maintainers/mabar)[@mabar](https://github.com/mabar)

---

Top Contributors

[![mabar](https://avatars.githubusercontent.com/u/20974277?v=4)](https://github.com/mabar "mabar (67 commits)")

---

Tags

annotationsattributesclassesconstantsinterfacesmetamethodsorisaiphppropertiesreflectiontraitsinterfacesreflectionannotationsattributesclassesconstantspropertiesmetatraitsmethodsorisai

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/orisai-reflection-meta/health.svg)

```
[![Health](https://phpackages.com/badges/orisai-reflection-meta/health.svg)](https://phpackages.com/packages/orisai-reflection-meta)
```

###  Alternatives

[ergebnis/classy

Provides collectors for classy constructs (classes, enums, interfaces, and traits).

382.8M20](/packages/ergebnis-classy)[minime/annotations

The KISS PHP annotations library

229378.6k36](/packages/minime-annotations)[crell/attributeutils

A robust, flexible attribute handling framework

101426.2k10](/packages/crell-attributeutils)[spiral/attributes

PHP attributes reader

233.6M45](/packages/spiral-attributes)[kdyby/strict-objects

Simple trait to make your class strict, when calling or accessing undefined member (property or method).

321.7M18](/packages/kdyby-strict-objects)[spatie/php-attribute-reader

A clean API for working with PHP attributes

80216.4k11](/packages/spatie-php-attribute-reader)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
