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 4y ago1 watchersCompare

[ Source](https://github.com/xylemical/discovery)[ Packagist](https://packagist.org/packages/xylemical/discovery)[ RSS](/packages/xylemical-discovery/feed)WikiDiscussions master Synced 1w 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

Maturity26

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

[athari/yalinqo

YaLinqo, a LINQ-to-objects library for PHP

4531.2M5](/packages/athari-yalinqo)[malukenho/mcbumpface

Bumping into packages

116759.4k24](/packages/malukenho-mcbumpface)[usmanhalalit/strana

Pagination library for PHP, framework agnostic, with built-in adapters for Doctrine, Eloquent, Pixie and PHP Array.

947.4k4](/packages/usmanhalalit-strana)[bodunde/geocoder

A laravel package that helps you with geocoding addresses and reverse geocoding coordinates using the google maps api. It also helps in calculating the distance between two locations using the Hervasine formula and the coordinates of the locations

247.7k](/packages/bodunde-geocoder)

PHPackages © 2026

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