PHP code example of devphp-pmro / devphp-file-download

1. Go to this page and download the library: Download devphp-pmro/devphp-file-download 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/ */

    

devphp-pmro / devphp-file-download example snippets

 sh

<? php

vphp\Download;
    
º - o aquivo a ser baixado 

$dl = new Download();
$dl->downloadExec(
    $_SERVER['DOCUMENT_ROOT']."/devphp-file-download/exemplo/",
    "file.txt"
);