Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/prhost/composer-vendor-merge
This class has the goal of automatically merge all autoload and vendor. Ideal for those who organize your project in plugins, modules, extensions, etc.
https://github.com/prhost/composer-vendor-merge
composer merge php vendor
Last synced: about 2 months ago
JSON representation
This class has the goal of automatically merge all autoload and vendor. Ideal for those who organize your project in plugins, modules, extensions, etc.
- Host: GitHub
- URL: https://github.com/prhost/composer-vendor-merge
- Owner: prhost
- License: mit
- Created: 2017-09-23T14:01:42.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-12T13:26:08.000Z (over 5 years ago)
- Last Synced: 2024-06-10T15:29:16.228Z (7 months ago)
- Topics: composer, merge, php, vendor
- Language: PHP
- Size: 3.91 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Composer Vendor Merge
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**
```php
$manager = new Prhost\ComposerMergeVendor();
$manager->init();
```**Adds other vendor by project**
```php
//Other vendor
$manager->addVendor(__DIR__ . '/path/to/other/vendor');
```### Example Standalone
**Require the classe**
```php
require_once 'src/ComposerMergeVendor.php';
```**Instance and init the classe**
```php
$manager = new Prhost\ComposerMergeVendor();
$manager->init();
```**Adds other vendor by project**
```php
//Other vendor
$manager->addVendor(__DIR__ . '/path/to/other/vendor');
```### Credits
* [@kallefpr](https://twitter.com/kallefpr)
* [OctoberCMS](http://octobercms.com)