PHPackages                             openeuropa/composer-artifacts - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. openeuropa/composer-artifacts

ActiveComposer-plugin[Utility &amp; Helpers](/categories/utility)

openeuropa/composer-artifacts
=============================

Composer plugin that allows to download a specified artifact instead of the default package.

0.1.3(7y ago)11165.9k↓22.5%3[3 PRs](https://github.com/openeuropa/composer-artifacts/pulls)5EUPL-1.2PHPPHP &gt;=5.6CI passing

Since May 28Pushed 9mo ago18 watchersCompare

[ Source](https://github.com/openeuropa/composer-artifacts)[ Packagist](https://packagist.org/packages/openeuropa/composer-artifacts)[ RSS](/packages/openeuropa-composer-artifacts/feed)WikiDiscussions 1.x Synced 1mo ago

READMEChangelog (3)Dependencies (5)Versions (13)Used By (5)

Composer Artifacts
==================

[](#composer-artifacts)

[![Build Status](https://camo.githubusercontent.com/778b70aaf52d2eca307648c3aeef23516913018537a8fdf339e5dc8e9858bf16/68747470733a2f2f64726f6e652e66706669732e65752f6170692f6261646765732f6f70656e6575726f70612f636f6d706f7365722d6172746966616374732f7374617475732e7376673f6272616e63683d6d6173746572)](https://drone.fpfis.eu/openeuropa/composer-artifacts)[![Packagist](https://camo.githubusercontent.com/7c54afd4b23f3e714943e9b869c8f9fac57b9db1ed8f8ca910ed539ea4f79d0b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f70656e6575726f70612f636f6d706f7365722d6172746966616374732e737667)](https://packagist.org/packages/openeuropa/composer-artifacts)

Composer plugin that allows to download a specified artifact instead of the default `dist` URL, this allows to download all artifact dependencies too.

**Note:** version 2.x of Composer Artifacts only works with Composer 2.x and only supports ZIP artifacts.

**Table of contents:**

- [Installation](#installation)
- [Usage](#usage)
- [Development setup](#development-setup)
- [Contributing](#contributing)
- [Versioning](#versioning)

Installation
------------

[](#installation)

The recommended way of installing the plugin is via [Composer](https://www.drupal.org/docs/develop/using-composer/using-composer-to-manage-drupal-site-dependencies#managing-contributed).

```
composer require openeuropa/composer-artifacts
```

Usage
-----

[](#usage)

Edit the composer.json file and add the following in your `extra` section:

```
{
    "extra": {
        "artifacts": {
            "foo/bar": {
              "dist": {
                "url": "https://github.com/{name}/releases/download/{version}/{project-name}-{version}.zip",
                "type": "zip"
              }
            }
        }
    }
}
```

This will fetch `dist` content from:

```
https://github.com/foo/bar/releases/download/0.1.0/bar-0.1.0.zip"

```

Valid `type` values are `tar` and `zip` while available URL replacement tokens are:

- `{name}`: the full package's name without version info, e.g. `foo/bar`
- `{vendor-name}`: just the vendor name, e.g. `foo`
- `{project-name}`: just the project name, e.g. `bar`
- `{pretty-version}`: the pretty (i.e. non-normalized) version string of this package, e.g. `0.1.0`
- `{version}`: the full version of this package, e.g. `0.1.0.0`
- `{stability}`: the stability of this package, e.g. `dev`, `alpha`, `beta`, `RC` or `stable`
- `{type}`: the package type, e.g. `library`
- `{checksum}`: the SHA1 checksum for the distribution archive of this version

Development setup
-----------------

[](#development-setup)

### Using Docker Compose

[](#using-docker-compose)

Alternatively, you can build a development environment using [Docker](https://www.docker.com/get-docker) and [Docker Compose](https://docs.docker.com/compose/) with the provided configuration.

Docker provides the necessary services and tools needed to get the tests running, regardless of your local host configuration.

#### Requirements:

[](#requirements)

- [Docker](https://www.docker.com/get-docker)
- [Docker Compose](https://docs.docker.com/compose/)

#### Configuration

[](#configuration)

By default, Docker Compose reads two files, a `docker-compose.yml` and an optional `docker-compose.override.yml` file. By convention, the `docker-compose.yml` contains your base configuration and it's provided by default. The override file, as its name implies, can contain configuration overrides for existing services or entirely new services. If a service is defined in both files, Docker Compose merges the configurations.

Find more information on Docker Compose extension mechanism on [the official Docker Compose documentation](https://docs.docker.com/compose/extends/).

#### Usage

[](#usage-1)

To start, run:

```
docker-compose up
```

It's advised to not daemonize `docker-compose` so you can turn it off (`CTRL+C`) quickly when you're done working. However, if you'd like to daemonize it, you have to add the flag `-d`:

```
docker-compose up -d
```

Then:

```
docker-compose exec web composer install
```

#### Running the tests

[](#running-the-tests)

To run the grumphp checks:

```
docker-compose exec web ./vendor/bin/grumphp run
```

To run the phpunit tests:

```
docker-compose exec web ./vendor/bin/phpunit
```

#### Step debugging

[](#step-debugging)

To enable step debugging from the command line, pass the `XDEBUG_SESSION` environment variable with any value to the container:

```
docker-compose exec -e XDEBUG_SESSION=1 web
```

Please note that, starting from XDebug 3, a connection error message will be outputted in the console if the variable is set but your client is not listening for debugging connections. The error message will cause false negatives for PHPUnit tests.

To initiate step debugging from the browser, set the correct cookie using a browser extension or a bookmarklet like the ones generated at .

Contributing
------------

[](#contributing)

Please read [the full documentation](https://github.com/openeuropa/openeuropa) for details on our code of conduct, and the process for submitting pull requests to us.

Versioning
----------

[](#versioning)

We use [SemVer](http://semver.org/) for versioning. For the available versions, see the [tags on this repository](https://github.com/openeuropa/composer-artifacts/tags).

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance40

Moderate activity, may be stable

Popularity40

Moderate usage in the ecosystem

Community31

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor3

3 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~436 days

Recently: every ~624 days

Total

7

Last Release

294d ago

Major Versions

0.x-dev → 1.0.0-alpha12022-02-22

PHP version history (3 changes)0.1.0PHP &gt;=5.6

1.0.0-alpha1PHP &gt;=7.4

1.x-devPHP &gt;=8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/8562a7045bde4094cf1252195ae47001970518ed7281b9e13caa6b6ffea03a5b?d=identicon)[ademarco](/maintainers/ademarco)

![](https://www.gravatar.com/avatar/d3b1f4079f9a82f6dd88fe6577d1256b4ecbbccbcd4a4ec9bea7c2fd6f72b99a?d=identicon)[DIGIT-CORE](/maintainers/DIGIT-CORE)

---

Top Contributors

[![drupol](https://avatars.githubusercontent.com/u/252042?v=4)](https://github.com/drupol "drupol (27 commits)")[![ademarco](https://avatars.githubusercontent.com/u/153362?v=4)](https://github.com/ademarco "ademarco (20 commits)")[![yenyasinn](https://avatars.githubusercontent.com/u/1183951?v=4)](https://github.com/yenyasinn "yenyasinn (10 commits)")[![22Alexandra](https://avatars.githubusercontent.com/u/22908988?v=4)](https://github.com/22Alexandra "22Alexandra (9 commits)")[![sergepavle](https://avatars.githubusercontent.com/u/9432036?v=4)](https://github.com/sergepavle "sergepavle (9 commits)")[![hernani](https://avatars.githubusercontent.com/u/707860?v=4)](https://github.com/hernani "hernani (8 commits)")[![brummbar](https://avatars.githubusercontent.com/u/8488617?v=4)](https://github.com/brummbar "brummbar (8 commits)")[![imanoleguskiza](https://avatars.githubusercontent.com/u/14978592?v=4)](https://github.com/imanoleguskiza "imanoleguskiza (6 commits)")[![voidtek](https://avatars.githubusercontent.com/u/186827?v=4)](https://github.com/voidtek "voidtek (6 commits)")[![netlooker](https://avatars.githubusercontent.com/u/7669736?v=4)](https://github.com/netlooker "netlooker (3 commits)")[![pfrenssen](https://avatars.githubusercontent.com/u/442924?v=4)](https://github.com/pfrenssen "pfrenssen (2 commits)")[![nagyad](https://avatars.githubusercontent.com/u/22004498?v=4)](https://github.com/nagyad "nagyad (2 commits)")[![upchuk](https://avatars.githubusercontent.com/u/5848933?v=4)](https://github.com/upchuk "upchuk (1 commits)")

---

Tags

composer-pluginartifacts

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/openeuropa-composer-artifacts/health.svg)

```
[![Health](https://phpackages.com/badges/openeuropa-composer-artifacts/health.svg)](https://phpackages.com/packages/openeuropa-composer-artifacts)
```

###  Alternatives

[vaimo/composer-patches

Applies a patch from a local or remote file to any package that is part of a given composer project. Patches can be defined both on project and on package level. Optional support for patch versioning, sequencing, custom patch applier configuration and patch command for testing/troubleshooting added patches.

2994.3M16](/packages/vaimo-composer-patches)[mnsami/composer-custom-directory-installer

A composer plugin, to help install packages of different types in custom paths.

1395.0M52](/packages/mnsami-composer-custom-directory-installer)[typisttech/imposter-plugin

Composer plugin that wraps all composer vendor packages inside your own namespace. Intended for WordPress plugins.

158251.0k2](/packages/typisttech-imposter-plugin)[drupal-composer/preserve-paths

Composer plugin for preserving custom paths and supporting nested packages

271.1M5](/packages/drupal-composer-preserve-paths)[arokettu/composer-license-manager

License management plugin for Composer

61207.9k](/packages/arokettu-composer-license-manager)[liborm85/composer-vendor-cleaner

Composer Vendor Cleaner removes unnecessary development files and directories from vendor directory.

35342.7k1](/packages/liborm85-composer-vendor-cleaner)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
