PHPackages                             betterphp/php-reflection-utils - 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. betterphp/php-reflection-utils

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

betterphp/php-reflection-utils
==============================

PHP Reflection Utils is a set of helper methods for accessing the private properties and methods of a class

1.0.0(9y ago)011.8k↓56.7%1GPL-3.0PHPPHP &gt;= 5.6.0

Since May 4Pushed 9y ago1 watchersCompare

[ Source](https://github.com/betterphp/php-reflection-utils)[ Packagist](https://packagist.org/packages/betterphp/php-reflection-utils)[ RSS](/packages/betterphp-php-reflection-utils/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (4)Versions (2)Used By (1)

PHP Reflection Utils
====================

[](#php-reflection-utils)

A small helper class to make accessing private properties and methods easier, largely used in testing.

[![Build Status](https://camo.githubusercontent.com/9c18491649ac784bb1c555c17b5bc946aa72231393b57e963e1047bda8f4bde2/68747470733a2f2f63692e6a6163656b6b2e636f2e756b2f6275696c645374617475732f69636f6e3f6a6f623d5048502532305265666c656374696f6e2532305574696c73)](https://ci.jacekk.co.uk/job/PHP%20Reflection%20Utils)

Installation
------------

[](#installation)

The library can be included via composer

```
{
    "require-dev": {
        "betterphp/php-reflection-utils": "1.0.0"
    }
}
```

Documentation
-------------

[](#documentation)

Jenkins publishes a phpdoc [here](https://ci.jacekk.co.uk/view/Websites/job/PHP%20Reflection%20Utils/API_Docs/classes/betterphp.utils.reflection.html)

Testing
-------

[](#testing)

We use phpcs and phpunit for testing, run both before commiting anything

```
./vendor/bin/phpcs -p --standard=./ruleset.xml .

```

```
./vendor/bin/phpunit -c ./phpunit.xml

```

phpunit will do code coverage checking which requires xdebug, if it's not installed this will fail gracefully - not to worry.

A report of the test coverage is published [here by Jenkins](https://ci.jacekk.co.uk/job/PHP%20Reflection%20Utils/HTML_Code_Coverage/index.html)

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

3346d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d1703559df3b97e3354d35d8d9660159e0ee4097aae2edb72cbfd9846322dbe9?d=identicon)[jacekkuzemczak](/maintainers/jacekkuzemczak)

---

Top Contributors

[![betterphp](https://avatars.githubusercontent.com/u/788007?v=4)](https://github.com/betterphp "betterphp (32 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/betterphp-php-reflection-utils/health.svg)

```
[![Health](https://phpackages.com/badges/betterphp-php-reflection-utils/health.svg)](https://phpackages.com/packages/betterphp-php-reflection-utils)
```

###  Alternatives

[genealabs/laravel-null-carbon

A Laravel Carbon null-class.

56314.0k](/packages/genealabs-laravel-null-carbon)

PHPackages © 2026

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