vanengers/class-finder

Find classes (with namespaces) within folders

v1.1.1 2024-11-04 16:07 UTC

This package is auto-updated.

Last update: 2024-12-04 16:15:26 UTC


README

Find classes (with namespaces) within folders

Installation

composer require vanengers/class-finder

Usage

$finder = new ClassFinder();
$classes = $finder->getAllNameSpaces('/path/to/folder/to/search');

How it works.

Find all PHP classes in folder and subfolders. It will return an array with the full namespace of the class.