piedweb / composer-symlink
One Vendor Directory for multiple PHP projects using same dependencies - Disk space efficient composer fixer.
0.1.804
2024-10-08 09:23 UTC
Requires
- php: >=8
- symfony/filesystem: ^7.1
- thecodingmachine/safe: ^2.1
README
Disk efficient composer (fixer || symlinker) ➜ multiple project relying on same package version, why having multiple copy ?
This is a duplicate code killer to win some disk space.
Install
Via Packagist
Create a new project and install the dependency
mkdir composer-dependencies && cd composer-dependencies composer install piedweb/composer-symlink
Usage
Create cs.php
<?php include 'vendor/autoload.php'; (new ComposerSymlink([ '/path/to/my/project', 'path/to/my/second/project', ]))->exec();
Add it in post-update script
Contributing
Please see contributing
Credits
License
The MIT License (MIT). Please see License File for more information.