xylemical / discovery
Provides discovery of classes by hierarchy.
dev-master
2022-07-01 02:58 UTC
Requires
- php: >=8.0
- nikic/php-parser: ^4.14
Requires (Dev)
- mikey179/vfsstream: ^1.6
- xylemical/composer-dev-bundle: ^0.1.1
This package is auto-updated.
Last update: 2025-03-29 00:50:01 UTC
README
Provides a framework for class discovery.
Install
The recommended way to install this library is through composer.
composer require xylemical/discovery
Usage
use Xylemical\Discovery\SourceFactory; use Xylemical\Discovery\Directory\NamespaceDiscovery; $discovery = new NamespaceDiscovery(new SourceFactory(), 'Name\\Space\\Location', 'path/to/classes'); $sources = $discovery->discover();
License
MIT, see LICENSE.