thesebas / artifact-install
install packages from artifacts
Installs: 18
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:composer-plugin
Requires
- php: >=8.0
- composer-plugin-api: ^2.0
Requires (Dev)
- composer/composer: ~2.0
README
Plugin that allows to install prebuilt artifacts instead of sourcecode of a package.
Instalation
Install this plugin inside the host app you want to use artifacts in.
composer require thesebas/artifact-install
In the package that offers artifacts add extra.artifacts
key:
{ "extra": { "artifacts": { "url": "https://example.com/{name}/{version}.zip", "type": "zip" } } }
Alternatively if the artifact is stored as a github release attachment in a private repo plugin can fetch asset via github api, add the following:
{ "extra": { "artifacts": { "source": "github-release-asset", "file": "attachment_file_name.zip", "repo": "%org%/%repo%", "tag": "{pretty-version}", "type": "zip" } } }
Then the composer install
command will fetch composer.json
from the package for metadata and then will download configured artifact.