arrayiterator/extension

Easy extension / module loader

dev-master 2019-04-26 05:04 UTC

This package is auto-updated.

Last update: 2024-10-27 09:20:15 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();

LICENSE

MIT LICENSE