PHPackages                             ock/class-discovery - 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. ock/class-discovery

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

ock/class-discovery
===================

1.x-dev(12mo ago)01.1k4MITPHPPHP &gt;=8.3CI passing

Since May 23Pushed 11mo agoCompare

[ Source](https://github.com/ock-php/class-discovery)[ Packagist](https://packagist.org/packages/ock/class-discovery)[ RSS](/packages/ock-class-discovery/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (5)Versions (90)Used By (4)

Class discovery
===============

[](#class-discovery)

This package provides components and abstractions to help with all kinds of discovery operations across php class files.

Main concepts:

- [`ReflectionClassesIA*`](src/ReflectionClassesIA/ReflectionClassesIAInterface.php):
    IteratorAggregate that lists a special type of `\ReflectionClass` class objects.
    Typically this is based on a `ClassFilesIA*` object.
- [`FactoryReflection*`](src/Reflection/FactoryReflectionInterface.php):
    Interface for custom `ClassReflection` and `MethodReflection`, with methods that treat both of them as "factories".
- [`FactoryInspector*`](src/Inspector/FactoryInspectorInterface.php):
    Inspects a classes or methods, to find whatever you might be looking for.
- [`Discovery*`](src/Discovery/DiscoveryInterface.php):
    IteratorAggregate to discover objects found by an inspector in reflection methods.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance51

Moderate activity, may be stable

Popularity14

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity57

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

360d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/150032?v=4)[Andreas Hennings](/maintainers/donquixote)[@donquixote](https://github.com/donquixote)

---

Top Contributors

[![donquixote](https://avatars.githubusercontent.com/u/150032?v=4)](https://github.com/donquixote "donquixote (157 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ock-class-discovery/health.svg)

```
[![Health](https://phpackages.com/badges/ock-class-discovery/health.svg)](https://phpackages.com/packages/ock-class-discovery)
```

###  Alternatives

[nostalgiaz/bootstrap-switch

Turn checkboxes and radio buttons into toggle switches.

5.0k362.3k4](/packages/nostalgiaz-bootstrap-switch)[helgesverre/domain-availability

A PHP library for checking if a domain name is registered or not

26618.4k1](/packages/helgesverre-domain-availability)[ytake/valueobjects

A PHP library/collection of classes aimed to help developers using and undestanding immutable objects.(temporary package)

6086.2k](/packages/ytake-valueobjects)

PHPackages © 2026

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