PHPackages                             voku/better-reflection - 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. voku/better-reflection

Abandoned → [roave/better-reflection](/?search=roave%2Fbetter-reflection)Library

voku/better-reflection
======================

Better Reflection - an improved code reflection API

4.10.0(5y ago)1286[1 PRs](https://github.com/voku/BetterReflection/pulls)MITPHPPHP &gt;=7.4.1,&lt;7.5.0

Since Nov 2Pushed 3y ago1 watchersCompare

[ Source](https://github.com/voku/BetterReflection)[ Packagist](https://packagist.org/packages/voku/better-reflection)[ RSS](/packages/voku-better-reflection/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (10)Versions (120)Used By (0)

Better Reflection
=================

[](#better-reflection)

[![Build status](https://github.com/voku/BetterReflection/workflows/Build/badge.svg?branch=master)](https://github.com/ondrejmirtes/BetterReflection/actions?query=workflow%3ABuild+branch%3Amaster)[![Type Coverage](https://camo.githubusercontent.com/2509540d77c6993ea3af9c0cd074d266b973bdc9b457b1cbcc931966f6db2210/68747470733a2f2f73686570686572642e6465762f6769746875622f766f6b752f4265747465725265666c656374696f6e2f636f7665726167652e737667)](https://shepherd.dev/github/voku/BetterReflection)[![Latest Stable Version](https://camo.githubusercontent.com/a0d95d2bc35ec9f28b7fffcf6543798530b2eaae29e3627115a709e73c465d94/68747470733a2f2f706f7365722e707567782e6f72672f766f6b752f6265747465722d7265666c656374696f6e2f762f737461626c65)](https://packagist.org/packages/voku/better-reflection)[![License](https://camo.githubusercontent.com/5f98aa086154757f2a114c9e412786d1cbfd5ab7a8969f5e820966d7828ac8cd/68747470733a2f2f706f7365722e707567782e6f72672f766f6b752f6265747465722d7265666c656374696f6e2f6c6963656e7365)](https://packagist.org/packages/voku/better-reflection)

Better Reflection is a reflection API that aims to improve and provide more features than PHP's built-in [reflection API](https://php.net/manual/en/book.reflection.php).

**This fork brings back support for PHP 7.2**

**This fork is a fork from ondrejmirtes/BetterReflection**

---

***I will only push into that master branch, please do not use a tag of this fork fork!***

Limitations
-----------

[](#limitations)

- PHP cannot autoload functions, therefore we cannot statically reflect functions

License
-------

[](#license)

This package is released under the [MIT license](LICENSE).

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity80

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~4 days

Total

110

Last Release

1640d ago

Major Versions

0.1.0 → 1.0.02016-02-04

1.2.0 → 2.0.02017-09-16

2.0.2 → 3.0.02018-05-26

3.5.0 → 4.0.02020-03-01

PHP version history (10 changes)0.1.0PHP &gt;= 5.6

1.0.0PHP ^5.6|^7.0

2.0.0PHP &gt;7.1.0,&lt;7.3.0

2.0.1PHP &gt;=7.1.0,&lt;7.3.0

3.2.0PHP &gt;=7.1.0,&lt;7.4.0

3.4.0PHP &gt;=7.2.0,&lt;7.4.0

3.5.0PHP &gt;=7.2.0,&lt;7.5.0

4.3.1PHP &gt;=7.1.0,&lt;7.5.0

4.4.0PHP &gt;=7.4.1,&lt;7.5.0

4.3.15PHP &gt;=7.1.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/6456fe693db197c458272cb758bf78958bc7d3e787ccd59db4bf3cf41654316a?d=identicon)[voku](/maintainers/voku)

---

Top Contributors

[![Ocramius](https://avatars.githubusercontent.com/u/154256?v=4)](https://github.com/Ocramius "Ocramius (810 commits)")[![asgrim](https://avatars.githubusercontent.com/u/496145?v=4)](https://github.com/asgrim "asgrim (574 commits)")[![kukulich](https://avatars.githubusercontent.com/u/260445?v=4)](https://github.com/kukulich "kukulich (239 commits)")[![ondrejmirtes](https://avatars.githubusercontent.com/u/104888?v=4)](https://github.com/ondrejmirtes "ondrejmirtes (166 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (32 commits)")[![POPSuL](https://avatars.githubusercontent.com/u/683358?v=4)](https://github.com/POPSuL "POPSuL (18 commits)")[![mapkuff](https://avatars.githubusercontent.com/u/3684920?v=4)](https://github.com/mapkuff "mapkuff (17 commits)")[![moufmouf](https://avatars.githubusercontent.com/u/1290952?v=4)](https://github.com/moufmouf "moufmouf (14 commits)")[![muglug](https://avatars.githubusercontent.com/u/2292638?v=4)](https://github.com/muglug "muglug (13 commits)")[![orklah](https://avatars.githubusercontent.com/u/9605520?v=4)](https://github.com/orklah "orklah (12 commits)")[![voku](https://avatars.githubusercontent.com/u/264695?v=4)](https://github.com/voku "voku (12 commits)")[![Lctrs](https://avatars.githubusercontent.com/u/5477973?v=4)](https://github.com/Lctrs "Lctrs (11 commits)")[![vlastavesely](https://avatars.githubusercontent.com/u/22521379?v=4)](https://github.com/vlastavesely "vlastavesely (10 commits)")[![dantleech](https://avatars.githubusercontent.com/u/530801?v=4)](https://github.com/dantleech "dantleech (6 commits)")[![TomasVotruba](https://avatars.githubusercontent.com/u/924196?v=4)](https://github.com/TomasVotruba "TomasVotruba (5 commits)")[![Majkl578](https://avatars.githubusercontent.com/u/144181?v=4)](https://github.com/Majkl578 "Majkl578 (4 commits)")[![paxal](https://avatars.githubusercontent.com/u/1848817?v=4)](https://github.com/paxal "paxal (4 commits)")[![janlanger](https://avatars.githubusercontent.com/u/415695?v=4)](https://github.com/janlanger "janlanger (3 commits)")[![GeeH](https://avatars.githubusercontent.com/u/613376?v=4)](https://github.com/GeeH "GeeH (3 commits)")[![nick-zh](https://avatars.githubusercontent.com/u/3214182?v=4)](https://github.com/nick-zh "nick-zh (3 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Psalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/voku-better-reflection/health.svg)

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

###  Alternatives

[nelmio/api-doc-bundle

Generates documentation for your REST API from attributes

2.3k63.6M233](/packages/nelmio-api-doc-bundle)[phpdocumentor/phpdocumentor

Documentation Generator for PHP

4.4k3.1M878](/packages/phpdocumentor-phpdocumentor)[deptrac/deptrac

Deptrac is a static code analysis tool that helps to enforce rules for dependencies between software layers.

2.9k6.3M68](/packages/deptrac-deptrac)[humbug/php-scoper

Prefixes all PHP namespaces in a file or directory.

7963.0M35](/packages/humbug-php-scoper)[humbug/box

Fast, zero config application bundler with PHARs.

1.3k801.5k69](/packages/humbug-box)[thecodingmachine/graphqlite

Write your GraphQL queries in simple to write controllers (using webonyx/graphql-php).

5723.1M30](/packages/thecodingmachine-graphqlite)

PHPackages © 2026

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