nihilarr / deluge-web-api
Library to access Deluge using the webui
v0.0.1
2018-06-02 14:10 UTC
Requires
- php: >=5.3.24
This package is auto-updated.
Last update: 2025-04-29 00:44:25 UTC
README
Library to access Deluge using the webui
Requirements
- PHP >= 5.3.29
Install
Composer
composer require nihilarr/deluge-web-api
Non-Composer
require('DelugeWebApi.php'); // Require DelugeWebApi/DelugeWebApi.php file
Usage
use Nihilarr\DelugeWebApi;
$deluge = new DelugeWebApi('localhost', 'password');
if($deluge->authenticate()) {
$torrents = $deluge->get_torrents(['label' => 'movies'], ['name']);
var_dump($torrents);
}
# Array
# (
# ["torrent-hash"] =>
# Array
# (
# ["name"] => string(54) "Resident.Evil.Retribution.2012.720p.BRRip.x264-testing"
# )
# )
Note
Contributing
License
MIT © Drew Smith