bluelyte / transmission-remote
A wrapper for the transmission-remote CLI utility.
dev-master
2013-04-20 00:35 UTC
Requires
- php: >=5.3.3
This package is not auto-updated.
Last update: 2024-11-09 14:35:32 UTC
README
A PHP wrapper for the transmission-remote CLI utility.
DISCLAIMER: This project is not endorsed by, affiliated with, or intended to infringe upon the Transmission project and is meant for non-commercial purposes (i.e. personal use) only.
Install
The recommended method of installation is through composer.
{ "require": { "bluelyte/transmission-remote": "1.0.0" } }
Usage
<?php require __DIR__ . '/vendor/autoload.php'; // Configuration and initialization $remote = new \Bluelyte\Transmission\Remote(); $remote->setEncryption(false); // not recommended - is true by default $remote->setPort(12345); // uses standard BitTorrent port by default $remote->setUpnp(true); // is false by default $remote->setDownloadPath('/path/for/downloads'); $remote->start(); // Handling torrents $remote->addTorrents('/path/to/file1.torrent'); $remote->addTorrents('/path/to/file2.torrent /path/to/file3.torrent'); $remote->addTorrents(array('/path/to/file4.torrent', '/path/to/file5.torrent')); $remote->startTorrents(); // Debugging var_dump($remote->getOutput(), $remote->getStatus());
License
Released under the BSD License. See LICENSE
.