thesebas / artifact-install
There is no license information available for the latest version (v1.1.0) of this package.
install packages from artifacts
Package info
github.com/thesebas/php-artifact-install
Type:composer-plugin
pkg:composer/thesebas/artifact-install
v1.1.0
2024-11-06 10:52 UTC
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.