arrayiterator / extension
Easy extension / module loader
dev-master
2019-04-26 05:04 UTC
Requires
- php: ^7.0
- ext-spl: *
Requires (Dev)
This package is auto-updated.
Last update: 2024-12-27 09:42:51 UTC
README
Easy extension loader
Composer
{ "arrayiterator/extension" : "dev-master" }
Requirements
php : >= 7.0
Example
<?php namespace Application; use ArrayIterator\Extension\Loader; // require composer autoload require __DIR__ . '/vendor/autoload.php'; // extensions path to scan $extensionPath = '/path/to/extensions/directory/'; $loader = new Loader($extensionPath); // doing parse $loader->start(); /** * Get available extension * @var string[] $availableExtensions */ $availableExtensions = $loader->getAllAvailableExtensions();