PHP code example of web6 / vrto-downloader
1. Go to this page and download the library: Download web6/vrto-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/ */
web6 / vrto-downloader example snippets
$panoramaTilesUrl = 'https://vrto.me/_office/files/2/projects/blackhaus_-_panama_house/panos/panama_gear_high_res_gear01jpg.tiles';
$targetFolder = '/path/to/target/folder';
$options = array(
'keepFolderStructure' => true
);
try {
$downloader = new \W6\VrtoDownloader\VrtoDownloader( $panoramaTilesUrl, $targetFolder );
$downloader->execute();
} catch ( \W6\VrtoDownloader\VrtoDownloaderException $e ) {
die( 'Error : ' . $e->getMessage() );
}