Download the PHP package mostertb/transmission-php without Composer
On this page you can find all versions of the php package mostertb/transmission-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mostertb/transmission-php
More information about mostertb/transmission-php
Files in mostertb/transmission-php
Package transmission-php
Short Description Fork of unmaintained kleiram/transmission-php PHP Transmission RPC client library
License BSD-2-Clause
Informations about the package transmission-php
PHP Transmission API
This repo contains a fork of the un-maintained kleiram/transmission-php PHP Transmission RPC client library. This fork provides support for more recent versions of PHP and functionality in newer versions of Transmission as well as fixes to upstream issues. See the CHANGLOG for a full list of changes
The library provides an interface to the Transmission bit-torrent downloader. It provides means to get and remove torrents from the downloader as well as adding new torrents to the download queue.
Installation
Installation is easy using Composer:
Usage
Using the library is as easy as installing it:
To find out which information is contained by the torrent, check
Transmission\Model\Torrent
.
By default, the library will try to connect to localhost:9091
. If you want to
connect to another host or post you can pass those to the constructor of the
Transmission
class.
The constructor will also allow you to configure a non-standard RPC URL with its third parameter and a request timeout (in seconds) with its fourth parameter. All parameters are optional:
It is also possible to pass the torrent data directly instead of using a file but the metadata must be base64-encoded:
If the Transmission server is secured with a username and password you can
authenticate using the Client
class:
Additionally, you can control the actual Transmission setting. This means you can modify the global download limit or change the download directory:
Testing
Testing is done using PHPUnit. Assuming your composer install
was done
including development dependencies, you can run the version of PHPUnit supported by this project straight from the vendor
directory:
License
This library is licensed under the BSD 2-clause license. Refer to the LICENSE file
All versions of transmission-php with dependencies
symfony/property-access Version >=2.2.1
php Version ~7.2