PHPackages                             j4wx/simple-namespace-finder - 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. j4wx/simple-namespace-finder

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

j4wx/simple-namespace-finder
============================

03PHP

Since Jul 7Pushed 6y agoCompare

[ Source](https://github.com/J4Wx/PHP-Simple-Namespace-Finder)[ Packagist](https://packagist.org/packages/j4wx/simple-namespace-finder)[ RSS](/packages/j4wx-simple-namespace-finder/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Simple Namespace Finder
=======================

[](#simple-namespace-finder)

Simple Namespace Finder is a library that can be used to find all of the classes within a specified namespace. It currently only supports PSR4 namespacing but I am open to adding other options if anyone requires it.

Use Case
--------

[](#use-case)

The use case for which I first built this library was a need to find all of an apps controllers to confirm that the one specified in the routes file existed before attempting to instantiate it. Rather than all of the controllers needing to be declared individually, the app can now find all of them manually.

Example
-------

[](#example)

```
use J4Wx\SimpleNamespaceFinder\PSR4Loader;
$loader = PSR4Loader::find('J4Wx');
```

This code in this project would result in:

```
$loader = [
    "J4Wx\SimpleNamespaceFinder\I\PluginLoader",
    "J4Wx\SimpleNamespaceFinder\PSR4Loader"
];
```

You can be more specific too:

```
use J4Wx\SimpleNamespaceFinder\PSR4Loader;
$loader = PSR4Loader::find('J4Wx\SimpleNamespaceFinder\I');
```

Results in:

```
$loader = [
    "J4Wx\SimpleNamespaceFinder\I\PluginLoader",
];
```

Composer
--------

[](#composer)

This project is available on Packagist.

```
composer require j4wx/simple-namespace-finder

```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

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/ec4b2f97a2fd8f4a742e995c5de3c7ea7b8e04cbeef35d205264b7f04a3a4bdf?d=identicon)[J4Wx](/maintainers/J4Wx)

### Embed Badge

![Health badge](/badges/j4wx-simple-namespace-finder/health.svg)

```
[![Health](https://phpackages.com/badges/j4wx-simple-namespace-finder/health.svg)](https://phpackages.com/packages/j4wx-simple-namespace-finder)
```

###  Alternatives

[dm/ajaxcom

Controls Ajax from PHP

1816.4k](/packages/dm-ajaxcom)[slack/hack-json-schema

Hack JSON Schema generator

302.4k](/packages/slack-hack-json-schema)[proai/lumen-annotations

Route and event binding annotations for Laravel Lumen

1012.4k](/packages/proai-lumen-annotations)

PHPackages © 2026

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