prhost/composer-vendor-merge

Maintainers

Package info

github.com/prhost/composer-vendor-merge

Type:project

pkg:composer/prhost/composer-vendor-merge

Statistics

Installs: 535

Dependents: 1

Suggesters: 0

Stars: 2

Open Issues: 0

0.1.1 2019-09-12 13:25 UTC

This package is auto-updated.

Last update: 2026-03-13 04:42:10 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');

Credits