Download the PHP package merophp/autoloader without Composer
On this page you can find all versions of the php package merophp/autoloader. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package autoloader
Introduction
Simple PSR-4 autoloader for the merophp framework.
Installation
Via composer:
composer require merophp/autoloader
Basic Usage
require_once 'vendor/autoload.php';
use Merophp\Autoloader\NamespacePrefix\NamespacePrefix;
use Merophp\Autoloader\NamespacePrefix\Collection\NamespacePrefixCollection;
use Merophp\Autoloader\NamespacePrefix\Provider\NamespacePrefixProvider;
use Merophp\Autoloader\Autoloader;
$collection = new NamespacePrefixCollection();
$collection->addMultiple([
new NamespacePrefix('Vendor1\\Test', './tests/integration/testData/vendor1'),
new NamespacePrefix('Vendor2\\Test', './tests/integration/testData/vendor2'),
]);
$provider = new NamespacePrefixProvider($collection);
$autoloader = new Autoloader($provider);
//Now you can call your classes
$serviceA = new Vendor1\Test\Service\ServiceA();
//Expect class in ./tests/integration/testData/vendor1/Service/ServiceA.php
All versions of autoloader with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.4
The package merophp/autoloader contains the following files
Loading the files please wait ....