internal/dload

Downloads binaries.

Fund package maintenance!
Patreon

1.0.0-alpha 2024-08-02 20:18 UTC

This package is auto-updated.

Last update: 2024-10-06 18:52:27 UTC


README

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