manyou / aria2
Aria2 JSON-RPC Client
dev-main / 0.1.x-dev
2024-03-22 07:36 UTC
Requires
- php: >=8.1
- symfony/http-client: ^6.4|^7.0
- symfony/http-client-contracts: ^3.0
This package is auto-updated.
Last update: 2024-10-22 09:00:15 UTC
README
composer require manyou/aria2
This library uses symfony/http-client.
An exception will be thrown if an error occurred.
<?php declare(strict_types=1); use Manyou\Aria2\Aria2; $aria2 = new Aria2('http://localhost:6800/jsonrpc', 'rpc-secret'); $aria2->request('addUri', [ ['https://example.com/'], ['out' => 'index.html'] ]); // or use the "__call" magic method $aria2->addUri( ['https://example.com/'], ['out' => 'index.html'] );