Skip to content

Helps to download binaries from release assets

License

Notifications You must be signed in to change notification settings

php-internal/dload

Repository files navigation

DLoad

Download artifacts easily

Support


Installation

composer require internal/dload -W

PHP Latest Version on Packagist License Total DLoads

Usage

Get predefined software list

./vendor/bin/dload list

Download single software

./vendor/bin/dload get dolt

Configure preset for the project

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

Custom software registry

<?xml version="1.0"?>
<dload>
    <registry>
        <software name="RoadRunner"
                  alias="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>

GitHub Token

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