kporras07 / composer-symlinks
Composer script handling symlinks
Installs: 543 359
Dependents: 10
Suggesters: 0
Security: 0
Stars: 6
Watchers: 3
Forks: 7
Open Issues: 4
Requires
- symfony/filesystem: ^2.5 || ^3.0 || ^4.0 || ^6.0 || ^7.0
Requires (Dev)
- composer/composer: ^1.0
- phpunit/phpunit: ^5.5
- vanio/coding-standards: ^0.1@dev
This package is auto-updated.
Last update: 2024-12-06 20:39:51 UTC
README
Composer script handling creation of symlinks inside your composer project.
Note: Symlinks will become files copy when composer is run with --no-dev
Installation
Installation can be done as usually using composer.
composer require kporras07/composer-symlinks
Usage
Add the following in your root composer.json
file:
"require": { "kporras07/composer-symlinks": "dev-master" }, "scripts": { "post-install-cmd": [ "Kporras07\\ComposerSymlinks\\ScriptHandler::createSymlinks" ], "post-update-cmd": [ "Kporras07\\ComposerSymlinks\\ScriptHandler::createSymlinks" ] }, "extra": { "symlinks": { "components": "web/components" } }
After running either composer install
or composer update
, components folder will be accessible from your web folder web/components/
.
But of course, you have to be careful when making symlinks to a folder which is publicly accessible.