PHP code example of nattreid / downloader
1. Go to this page and download the library: Download nattreid/downloader 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/ */
nattreid / downloader example snippets
/** @var \NAttreid\Downloader\IDownloaderFactory */
private $downloaderFactory;
function download() {
$downloader = $this->downloaderFactory->create();
$downloader->index = TRUE; // porovnava hlavicku stahnutych souboru s originaly a pokud se shoduji, nic nestahuje
$downloader->download([
'http://zdrojovaAdresa' => 'cilovySoubor'
]);
}