piotrpress / classmap
This library generates classmap for autoload.
v1.0.0
2021-05-11 19:16 UTC
Requires
- php: >=7.4
This package is auto-updated.
Last update: 2024-12-12 03:24:38 UTC
README
This library generates classmap for autoload.
NOTE: This code is based on ClassMapGenerator from symfony/class-loader component.
Installation
composer require piotrpress/classmap
Usage
require __DIR__ . '/vendor/autoload.php'; use PiotrPress\Classmap; $classmap = new Classmap( __DIR__ . '/vendor' ); // return array $classmap->get(); // save to file $classmap->dump( __DIR__ . '/vendor/classmap.php' );