PHPackages                             sebastian/code-unit-reverse-lookup - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. sebastian/code-unit-reverse-lookup

ActiveLibrary[Testing &amp; Quality](/categories/testing)

sebastian/code-unit-reverse-lookup
==================================

Looks up which function or method a line of code belongs to

4.0.1(1y ago)6.7k796.3M—8.2%613BSD-3-ClausePHPPHP &gt;=8.2CI passing

Since Feb 13Pushed 11mo ago3 watchersCompare

[ Source](https://github.com/sebastianbergmann/code-unit-reverse-lookup)[ Packagist](https://packagist.org/packages/sebastian/code-unit-reverse-lookup)[ Docs](https://github.com/sebastianbergmann/code-unit-reverse-lookup/)[ GitHub Sponsors](https://github.com/sebastianbergmann)[ RSS](/packages/sebastian-code-unit-reverse-lookup/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (14)Used By (13)

[![No Maintenance Intended](https://camo.githubusercontent.com/a527ad34c8e95a96952ba81a6aa421bc0fd9c18d55bd2b2cb28ff644f428f665/68747470733a2f2f756e6d61696e7461696e65642e746563682f62616467652e737667)](https://unmaintained.tech/)[![Latest Stable Version](https://camo.githubusercontent.com/9a2e62e8b57847265a50e1091628c9cf5808bec6e5fe58600774cabc7bc7e5c6/68747470733a2f2f706f7365722e707567782e6f72672f73656261737469616e2f636f64652d756e69742d726576657273652d6c6f6f6b75702f76)](https://packagist.org/packages/sebastian/code-unit-reverse-lookup)[![CI Status](https://github.com/sebastianbergmann/code-unit-reverse-lookup/workflows/CI/badge.svg)](https://github.com/sebastianbergmann/code-unit-reverse-lookup/actions)[![codecov](https://camo.githubusercontent.com/4bc3b9fe9c74b6e76dfd169d5ac1ed1ed383b0ea9d4d9bf7d44bf7970cf8816e/68747470733a2f2f636f6465636f762e696f2f67682f73656261737469616e626572676d616e6e2f636f64652d756e69742d726576657273652d6c6f6f6b75702f6272616e63682f6d61696e2f67726170682f62616467652e737667)](https://codecov.io/gh/sebastianbergmann/code-unit-reverse-lookup)

sebastian/code-unit-reverse-lookup
==================================

[](#sebastiancode-unit-reverse-lookup)

Looks up which function or method a line of code belongs to.

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

[](#installation)

You can add this library as a local, per-project dependency to your project using [Composer](https://getcomposer.org/):

```
composer require sebastian/code-unit-reverse-lookup

```

If you only need this library during development, for instance to run your project's test suite, then you should add it as a development-time dependency:

```
composer require --dev sebastian/code-unit-reverse-lookup

```

Please note that this is now a [low maintenance project](https://github.com/sebastianbergmann/code-unit-reverse-lookup/blob/main/.github/CONTRIBUTING.md#low-maintenance-project).

###  Health Score

63

—

FairBetter than 99% of packages

Maintenance42

Moderate activity, may be stable

Popularity81

Widely adopted with strong download metrics

Community24

Small or concentrated contributor base

Maturity83

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 98.8% 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 ~270 days

Recently: every ~83 days

Total

13

Last Release

502d ago

Major Versions

1.0.1 → 2.0.02020-02-07

1.0.2 → 3.0.02023-02-03

3.0.0 → 4.0.02024-02-02

1.0.3 → 4.0.12024-07-03

PHP version history (7 changes)1.0.0PHP &gt;=5.6

1.0.1PHP ^5.6 || ^7.0

2.0.0PHP ^7.3

2.0.2PHP ^7.3 || ^8.0

2.0.3PHP &gt;=7.3

3.0.0PHP &gt;=8.1

4.0.0PHP &gt;=8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1089?v=4)[Sebastian Probst Eide](/maintainers/sebastian)[@sebastian](https://github.com/sebastian)

---

Top Contributors

[![sebastianbergmann](https://avatars.githubusercontent.com/u/25218?v=4)](https://github.com/sebastianbergmann "sebastianbergmann (331 commits)")[![localheinz](https://avatars.githubusercontent.com/u/605483?v=4)](https://github.com/localheinz "localheinz (3 commits)")[![GrahamCampbell](https://avatars.githubusercontent.com/u/2829600?v=4)](https://github.com/GrahamCampbell "GrahamCampbell (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sebastian-code-unit-reverse-lookup/health.svg)

```
[![Health](https://phpackages.com/badges/sebastian-code-unit-reverse-lookup/health.svg)](https://phpackages.com/packages/sebastian-code-unit-reverse-lookup)
```

###  Alternatives

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M682](/packages/phpspec-prophecy)[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k77.5M6.7k](/packages/vimeo-psalm)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[beberlei/assert

Thin assertion library for input validation in business models.

2.4k96.9M570](/packages/beberlei-assert)[mikey179/vfsstream

Virtual file system to mock the real file system in unit tests.

1.4k108.0M2.7k](/packages/mikey179-vfsstream)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)

PHPackages © 2026

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