prhost / composer-vendor-merge
Installs: 524
Dependents: 1
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 1
Open Issues: 0
Type:project
This package is auto-updated.
Last update: 2025-03-13 02:07:23 UTC
README
This class has the goal of automatically merge all autoload and vendor. Ideal for those who organize your project in plugins, modules, extensions, etc.
It was extracted from the OctoberCMS project core and adapted to work without the platform.
You can use this class both standalone and via composer package composer require prhost/composer-vendor-merge
Example via Composer package
Install the package
composer require prhost/composer-vendor-merge
Instance and init the classe
$manager = new Prhost\ComposerMergeVendor(); $manager->init();
Adds other vendor by project
//Other vendor $manager->addVendor(__DIR__ . '/path/to/other/vendor');
Example Standalone
Require the classe
require_once 'src/ComposerMergeVendor.php';
Instance and init the classe
$manager = new Prhost\ComposerMergeVendor(); $manager->init();
Adds other vendor by project
//Other vendor $manager->addVendor(__DIR__ . '/path/to/other/vendor');