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

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

xylemical/discovery
===================

Provides discovery of classes by hierarchy.

08PHP

Since Jul 1Pushed 3y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Discovery framework
===================

[](#discovery-framework)

Provides a framework for class discovery.

Install
-------

[](#install)

The recommended way to install this library is [through composer](http://getcomposer.org).

```
composer require xylemical/discovery
```

Usage
-----

[](#usage)

```
use Xylemical\Discovery\SourceFactory;
use Xylemical\Discovery\Directory\NamespaceDiscovery;

$discovery = new NamespaceDiscovery(new SourceFactory(), 'Name\\Space\\Location', 'path/to/classes');
$sources = $discovery->discover();
```

License
-------

[](#license)

MIT, see LICENSE.

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity25

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/6a6f5fc80d04ffca782072d391a679cd679265cf62959fb6f67749f6063199eb?d=identicon)[rhys-mcguckin](/maintainers/rhys-mcguckin)

---

Top Contributors

[![rhys-mcguckin](https://avatars.githubusercontent.com/u/5679170?v=4)](https://github.com/rhys-mcguckin "rhys-mcguckin (6 commits)")

### Embed Badge

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

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

###  Alternatives

[ejsmont-artur/php-circuit-breaker

PHP Circuit Breaker component

169964.9k4](/packages/ejsmont-artur-php-circuit-breaker)[politriukas/avataaars

PHP SVG avatar generator based on https://github.com/fangpenlin/avataaars-generator

112.0k](/packages/politriukas-avataaars)

PHPackages © 2026

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