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-11-12 03:08:39 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' );