PHP code example of hoiast / alura-downloader
1. Go to this page and download the library: Download hoiast/alura-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/ */
hoiast / alura-downloader example snippets
use Hoiast\AluraDownloader\AluraDownloader;
// Insira credenciais válidas
$username = "[email protected]";
$password = "password";
$coursesURLs = [
"https://cursos.alura.com.br/course/php-composer",
]
// . Instantiate Downloader
$downloader = new AluraDownloader($username, $password);
// . Download courses
$downloader->downloadCourses($coursesURLs);
^8.1.0
download-courses.php