PHP code example of internal / dload

1. Go to this page and download the library: Download internal/dload library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

internal / dload example snippets

json
    {
        "scripts": {
            "post-update-cmd": "dload get --no-interaction -v || \"echo can't dload binaries\""
        }
    }
    
xml
<actions>
    <!-- Basic configuration using local velox.toml -->
    <velox config-file="./velox.toml" />

    <!-- With specific versions -->
    <velox config-file="./velox.toml"
           velox-version="2025.1.1"
           golang-version="^1.22"
           roadrunner-ref="v2025.1.2"
           binary-path="./bin/rr"
           debug="true" />

    <!-- Custom plugins -->
    <velox>
        <plugin name="temporal" />
        <plugin name="kv" />
    </velox>
</actions>
xml
<actions>
    <download software="rr" />        <!-- Linux binary for Linux, Windows .exe for Windows -->
    <download software="temporal" />   <!-- macOS binary for macOS, etc. -->
</actions>
xml
<actions>
    <!-- Download as executable .phar files -->
    <download software="psalm" type="phar" />
    <download software="phpstan" type="phar" />
    
    <!-- Extract contents instead -->
    <download software="psalm" type="archive" />  <!-- Unpacks psalm.phar -->
</actions>
xml
<software name="ui-kit">
    <repository type="github" uri="company/ui-components" />
    <file pattern="/^dist\/.*/" extract-path="public/components" />
</software>

<actions>
    <download software="ui-kit" type="archive" />
</actions>