rewrewby/php-rtorrent-client

PHP XMLRPC 客户端用于 rTorrent

v0.2.24 2016-10-07 22:20 UTC

This package is not auto-updated.

Last update: 2024-09-14 19:25:32 UTC


README

PHP XMLRPC 客户端用于 rtorrent

提供了一种简单、可通过 composer 安装的 XMLRPC 客户端,用于与 rTorrent 比特流客户端通信

要求

  • PHP 5.5.0
  • PHP curl 扩展
  • PHP xmlrpc 扩展

安装

推荐通过 composer 进行安装

composer require rewrewby/php-rtorrent-client

示例用法

<?php

require_once("../vendor/autoload.php");

$client = new PHPRtorrentClient\Client(array('rpc_address'=>"https://:8981/RPC2"));

$request = new PHPRtorrentClient\Request("system.listMethods");

$methods = $client->exec($request);

print_r($methods->getAll());

资源

rTorrent XMLRPC 参考