PHPackages                             yj-php-utils/class-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. yj-php-utils/class-finder

ActiveLibrary

yj-php-utils/class-finder
=========================

Class finder utility

1.0.0(5y ago)010MITPHPPHP &gt;=7.3

Since Feb 10Pushed 5y ago1 watchersCompare

[ Source](https://github.com/YujiIsNotAvailable/class-finder)[ Packagist](https://packagist.org/packages/yj-php-utils/class-finder)[ RSS](/packages/yj-php-utils-class-finder/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

ClassFinder
===========

[](#classfinder)

For what?
---------

[](#for-what)

Do you need get classes from specific namespace in a easy way? 🚀
Check this package.

Requirements
------------

[](#requirements)

- Using composer (Needed for search in autoload composer.json)
- PSR-4 implementations
- PHP 7.3 &gt;=

Instalation
-----------

[](#instalation)

```
composer require yj-php-utils/class-finder

```

Usage
-----

[](#usage)

```
// Your basePath project.
$basePath = defined('BASE_PATH') ? BASEPATH : '/var/www/html/your_project_base_path';

// List all classes in App\Http\Controllers namespace
$classes = \ClassFinder\Finder::findClassesInNamespace($basePath, 'App\Http\Controllers')->get();

// List all classes in '.' directory
$classes = \ClassFinder\Finder::findClassesInPath($basePath, __DIR__)->get();

// With filters
$classes =
    \ClassFinder\Finder::findClassesInNamespace($basePath, 'App\Http\Controllers')
    ->extends('\App\Http\Controllers\Controller')
    ->implements('\App\Http\Controllers\ApiInterface')
    ->where(function(string $namespace){ // get all classes that has index() method
        return method_exists($namespace, 'index');
    })
    ->get();
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

1923d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/44e51f7ac88018841061e3fd2aafc1a5c1e7657e26d684620e114d57a6b20853?d=identicon)[YujiIsNotAvailable](/maintainers/YujiIsNotAvailable)

---

Top Contributors

[![gabriel-yuji-inoue](https://avatars.githubusercontent.com/u/63526333?v=4)](https://github.com/gabriel-yuji-inoue "gabriel-yuji-inoue (8 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/yj-php-utils-class-finder/health.svg)

```
[![Health](https://phpackages.com/badges/yj-php-utils-class-finder/health.svg)](https://phpackages.com/packages/yj-php-utils-class-finder)
```

PHPackages © 2026

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