#T411 library
Search torrents in t411 api
composer require crosello/t411
$authConfig = new AuthConfig('username', 'password');`
...
$authentication = new Authentication();
$tokenConfig = $authentication->auth($authConfig);
$limit = 10;
$repository = new TorrentRepository($tokenConfig, $limit);
$torrents = $repository->search('Ubuntu');
$downloader = new TorrentDownloader($tokenConfig);
$file = $downloader->download($torrents[0]);