https://github.com/piotrpress/classmap
This library generates classmap for autoload.
https://github.com/piotrpress/classmap
autoload autoloader classmap classmapping
Last synced: 12 months ago
JSON representation
This library generates classmap for autoload.
- Host: GitHub
- URL: https://github.com/piotrpress/classmap
- Owner: PiotrPress
- License: gpl-3.0
- Created: 2021-05-11T19:12:27.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-11T19:17:13.000Z (about 5 years ago)
- Last Synced: 2025-01-03T15:49:12.223Z (over 1 year ago)
- Topics: autoload, autoloader, classmap, classmapping
- Language: PHP
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.txt
Awesome Lists containing this project
README
# Classmap
This library generates classmap for autoload.
**NOTE:** This code is based on [ClassMapGenerator](https://github.com/symfony/class-loader/blob/3.4/ClassMapGenerator.php) from [symfony/class-loader](https://github.com/symfony/class-loader) component.
## Installation
```console
composer require piotrpress/classmap
```
## Usage
```php
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](license.txt)