piotrpress/classmap

This library generates classmap for autoload.

v1.0.0 2021-05-11 19:16 UTC

This package is auto-updated.

Last update: 2024-10-12 03:02:41 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' );

License

GPL3.0