operations / remote-bin-scripts
Download remote scripts to add to a project's bin dir.
Installs: 57
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 1
Type:composer-plugin
Requires
- composer-plugin-api: ^2.0
Requires (Dev)
- composer/composer: ~1.0 || ~2.0
This package is auto-updated.
Last update: 2024-11-11 16:52:03 UTC
README
Download things into the bin-dir.
This plugin allows you to specify URLs to download on composer install
as scripts.
For example, you can download a binary or phar file into your vendor/bin
directory.
Advantages:
- Add PHP tools as phar files to alleviate the need to align composer requirements.
- Add scripts and tools written in other languages.
- Integrates with
composer install
.
Usage
-
Install the plugin.
$ composer require operations/remote-bin-scripts
-
Add to
composer.json
:{ "extra": { "remote-scripts": { "vendor/bin/hello-world": "https://raw.githubusercontent.com/operations-platform/composer-remote-bin-scripts/2.x/hello-world.sh" } } }
-
Run composer install:
$ composer install
-
Run your script from the composer bin path:
./vendor/bin/hello-world
Or, if you set PATH, just use the command.
PATH=$PATH:./vendor/bin hello-world
About
- Created by: Jon Pugh