thesebas/artifact-install

There is no license information available for the latest version (v1.1.0) of this package.

install packages from artifacts

Installs: 18

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:composer-plugin

v1.1.0 2024-11-06 10:52 UTC

This package is auto-updated.

Last update: 2024-11-06 10:53:03 UTC


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.