Download the PHP package lyzframework/directory-class-reader without Composer
On this page you can find all versions of the php package lyzframework/directory-class-reader. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package directory-class-reader
Directory Class Reader
This is a project to facilitate the reading of PHP classes from a directory.
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.
All versions of directory-class-reader with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.1.2
The package lyzframework/directory-class-reader contains the following files
Loading the files please wait ....