PHPackages                             greencape/reflector - 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. greencape/reflector

ActiveLibrary

greencape/reflector
===================

A wrapper to the Reflection classes for accessing non-public properties and methods for testing.

1.0.0(10y ago)0581MITPHP

Since Jul 16Pushed 10y ago1 watchersCompare

[ Source](https://github.com/GreenCape/reflector)[ Packagist](https://packagist.org/packages/greencape/reflector)[ Docs](https://github.com/GreenCape/reflector)[ RSS](/packages/greencape-reflector/feed)WikiDiscussions master Synced 1mo ago

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

Reflector
=========

[](#reflector)

[![SensioLabsInsight](https://camo.githubusercontent.com/6a5aae1d02b3f012752728aa0ac1b1c49fdbd7a4699ef52064013e3ed1f6996e/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f38333861396638332d376238642d346638312d613732392d3333326339613165303932612f6d696e692e706e67)](https://camo.githubusercontent.com/6a5aae1d02b3f012752728aa0ac1b1c49fdbd7a4699ef52064013e3ed1f6996e/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f38333861396638332d376238642d346638312d613732392d3333326339613165303932612f6d696e692e706e67)[![Code Climate](https://camo.githubusercontent.com/f54caef2c6d812dde0179b4869ff92d2b0b4cf87563374632954d0c101087512/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f477265656e436170652f7265666c6563746f722f6261646765732f6770612e737667)](https://codeclimate.com/github/GreenCape/reflector)[![Test Coverage](https://camo.githubusercontent.com/a59cb50a4714e5cb7d74f9824b5b9206051b7902eb72ba590817ccf4aac26255/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f477265656e436170652f7265666c6563746f722f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/GreenCape/reflector/coverage)[![Latest Stable Version](https://camo.githubusercontent.com/c0b61acb7f5856bf97323c61b942525e6b2dc7cf9f6bd3527d5ad4c7af04b5ff/68747470733a2f2f706f7365722e707567782e6f72672f677265656e636170652f7265666c6563746f722f762f737461626c652e706e67)](https://packagist.org/packages/greencape/reflector)[![Build Status](https://camo.githubusercontent.com/8eab9013257d9f3dc1741e06e15c6a9f963c767add88ac3cc6a9b5a2098ac2db/68747470733a2f2f6170692e7472617669732d63692e6f72672f477265656e436170652f7265666c6563746f722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/greencape/reflector)

Reflector is a wrapper to the Reflection classes for accessing non-public properties and methods for testing.

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

[](#installation)

### Composer

[](#composer)

Simply add a dependency on `greencape/reflector` to your project's `composer.json` file if you use [Composer](http://getcomposer.org/) to manage the dependencies of your project. Here is a minimal example of a `composer.json` file that just defines a dependency on Joomla CLI:

```
{
    "require-dev": {
        "greencape/reflector": "*@stable"
    }
}

```

For a system-wide installation via Composer, you can run:

```
composer global require --dev 'greencape/reflector=*'

```

Make sure you have `~/.composer/vendor/bin/` in your path.

Usage Examples
--------------

[](#usage-examples)

See `tests/ReflectorTest.php` for information about how to use Reflector.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

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

Unknown

Total

1

Last Release

3960d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/84f7f05685e84e3fe971d8d005bb74e766204799c50a7b45036af27436cecddc?d=identicon)[GreenCape](/maintainers/GreenCape)

---

Top Contributors

[![nibra](https://avatars.githubusercontent.com/u/827605?v=4)](https://github.com/nibra "nibra (5 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/greencape-reflector/health.svg)

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

PHPackages © 2026

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