1. Go to this page and download the library: Download aldobarr/qbittorrent-php 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/ */
// Note: `torrents/info` is implemented in the base qbittorrent class instead of the Torrent class
$torrents = $qbt->torrents();
foreach ($torrents as $torrent_data) {
$torrent = $qbt->torrent($torrent_data->hash);
// Get torrent files
print_r($torrent->files());
}