evolaze / binary-symlink
This package is abandoned and no longer maintained.
No replacement package was suggested.
Binary symlink script handler
2.0.0
2017-08-06 21:52 UTC
Requires
- php: >=7.1.1
- sensio/distribution-bundle: ^5.0.1
Requires (Dev)
- composer/composer: ^1.1.0
- phpunit/phpunit: ^5.2.1
This package is auto-updated.
Last update: 2022-11-03 11:43:41 UTC
README
Replace platform dependent symlink commands like
"ln -sf ../app/bin/some-binary.sj bin/some-binary.sh"
"ln -sf ../app/bin/some-other-binary.sj bin/other-binary.sh"
with extra config section and post install or\and update trigger
Installation
composer require evolaze/binary-symlink
In order to add link from app/from.sh to bin/to.sh
Composer.json
"scripts": {
"post-install-cmd": [
"Evolaze\\BinarySymlink\\ScriptHandler::installBinary"
]
},
"extra": {
"evolaze-binary-symlink": {
"links": [
{
"from": "from",
"to": "to"
}
]
}
}
Defaults
- Default dir to create links from is app
- Default dir to create links to is bin
Tests
./bin/phpunit -c ./tests/phpunit.xml
- php 7.1+ must be installed
or
./app/composer.sh run-script test
- docker must be installed