PHPackages                             nabeghe/reflecty - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. nabeghe/reflecty

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

nabeghe/reflecty
================

Simple reflection helper for PHP.

v0.5.2(9mo ago)4141MITPHPPHP &gt;=7.4

Since Oct 22Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/nabeghe/reflecty-php)[ Packagist](https://packagist.org/packages/nabeghe/reflecty)[ Docs](https://github.com/nabeghe/reflecty-php)[ RSS](/packages/nabeghe-reflecty/feed)WikiDiscussions master Synced today

READMEChangelog (8)Dependencies (1)Versions (9)Used By (1)

Reflecty for PHP ≥ 7.4
======================

[](#reflecty-for-php--74)

> Simple reflection helper for PHP.

🫡 Usage
-------

[](#-usage)

### 🚀 Installation

[](#-installation)

You can install the package via composer:

```
composer require nabeghe/reflecty
```

### Example - Class Ancestors

[](#example---class-ancestors)

```
use Nabeghe\Reflecty\Reflecty;

class Animal
{
}

class Lion extends Animal
{
}

class Cat extends Lion
{
}

print_r(Reflecty::classAncestors(Cat::class));

/*
    Array
    (
        [0] => Lion
        [1] => Animal
    )
 */
```

📖 License
---------

[](#-license)

Licensed under the MIT license, see [LICENSE.md](LICENSE.md) for details.

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance56

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 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 ~46 days

Recently: every ~29 days

Total

8

Last Release

292d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/12207627?v=4)[Hadi Akbarzadeh](/maintainers/nabeghe)[@nabeghe](https://github.com/nabeghe)

---

Top Contributors

[![nabeghe](https://avatars.githubusercontent.com/u/12207627?v=4)](https://github.com/nabeghe "nabeghe (9 commits)")

---

Tags

phpphp-helperphp-helpersphp-libraryphp-reflectionreflectionconstructorreflectionclasstraitpropertymethodtrait constructorreflectyreflection class

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/nabeghe-reflecty/health.svg)

```
[![Health](https://phpackages.com/badges/nabeghe-reflecty/health.svg)](https://phpackages.com/packages/nabeghe-reflecty)
```

###  Alternatives

[symfony/property-access

Provides functions to read and write from/to an object or array using a simple string notation

2.8k317.3M3.2k](/packages/symfony-property-access)[nette/robot-loader

🍀 Nette RobotLoader: high performance and comfortable autoloader that will search and autoload classes within your application.

89955.0M361](/packages/nette-robot-loader)[rybakit/arguments-resolver

ArgumentsResolver allows you to determine the arguments to pass to a function or method.

26112.8k7](/packages/rybakit-arguments-resolver)

PHPackages © 2026

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