Download artifacts easily
composer require internal/dload -W
./vendor/bin/dload list
./vendor/bin/dload get dolt
Create dload.xml
file in the root of the project with the following content:
<?xml version="1.0"?>
<dload>
<actions>
<download software="rr" version="^2.12.0" />
<download software="temporal"/>
</actions>
</dload>
There are two software packages to download: temporal
and rr
with version ^2.12.0
.
Optionally, you may specify the version of the software package using Composer versioning syntax.
To download all the configured software, run dload get
without arguments:
./vendor/bin/dload get
<?xml version="1.0"?>
<dload>
<registry>
<software name="RoadRunner"
alias="rr"
binary="rr"
description="High performant Application server"
>
<repository type="github"
uri="roadrunner-server/roadrunner"
asset-pattern="/^roadrunner-.*/"
/>
<file pattern="/^(roadrunner|rr)(?:\.exe)?$/"
rename="rr"
/>
</software>
</registry>
</dload>
DLoad will check the option software.binary
to prevent downloading if the file already exists.
To increase the rate limit for GitHub API, you can specify the token in the environment variable GITHUB_TOKEN
:
GITHUB_TOKEN=your_token_here ./vendor/bin/dload get