PHPackages                             lyzframework/directory-class-reader - 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. lyzframework/directory-class-reader

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

lyzframework/directory-class-reader
===================================

1.0.0(2y ago)091MITPHPPHP ^8.1.2

Since Nov 5Pushed 2y ago1 watchersCompare

[ Source](https://github.com/lucasamazonas/directory-class-reader)[ Packagist](https://packagist.org/packages/lyzframework/directory-class-reader)[ RSS](/packages/lyzframework-directory-class-reader/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (1)

Directory Class Reader
======================

[](#directory-class-reader)

This is a project to facilitate the reading of PHP classes from a directory.

```
composer require lyzframework/directory-class-reader

```

#### It contains two classes for this purpose:

[](#it-contains-two-classes-for-this-purpose)

- **ReaderFilesPHPDirectory**: reads all PHP files from a directory recursively. Instantiate the class by passing the mandatory $directory parameter, and then call the getListFiles() method to retrieve the list of files.
- **ReaderClassDirectory**: reads all files from a directory and retrieves the namespace so that you can instantiate the classes. Instantiate the class by passing the mandatory $readerFilesPHPDirectory parameter of type ReaderFilesPHPDirectory. After that, call the getListNamespace() method to retrieve an array with all the namespaces found.

A common use case is when you have a directory with several controllers that have routes mappings, and you want to retrieve all these controllers and perform a reflection treatment to extract the meta-information.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity51

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

925d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0b5bf45c31f75f117d81555c3934d557261b9ef4a823a26f5915cf8dcd024ad3?d=identicon)[Lucas Silva Amazonas](/maintainers/Lucas%20Silva%20Amazonas)

---

Top Contributors

[![lucasamazonas](https://avatars.githubusercontent.com/u/58488230?v=4)](https://github.com/lucasamazonas "lucasamazonas (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/lyzframework-directory-class-reader/health.svg)

```
[![Health](https://phpackages.com/badges/lyzframework-directory-class-reader/health.svg)](https://phpackages.com/packages/lyzframework-directory-class-reader)
```

###  Alternatives

[edvinaskrucas/settings

Persistent settings package for Laravel framework.

22483.1k1](/packages/edvinaskrucas-settings)[adduc/phpmodbus

Composer version of PhpModBus

7713.4k](/packages/adduc-phpmodbus)[craftcms/simple-text

This plugin adds a new “Simple Text” field type to Craft, which provides a textarea that’s optimized for entering documentation.

2624.1k](/packages/craftcms-simple-text)[tatter/menus

Dynamic menus for CodeIgniter 4

1713.8k1](/packages/tatter-menus)[asorasoft/chhankitek

Convert from AD (Anno Domini) to Lunar (Chhankitek) format.

104.2k](/packages/asorasoft-chhankitek)

PHPackages © 2026

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