Skip to content

[READ-ONLY] A simple Aria2 JSON-RPC client for PHP

License

Notifications You must be signed in to change notification settings

manyou-io/aria2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Simple Aria2 JSON-RPC Client For PHP

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']
);

About

[READ-ONLY] A simple Aria2 JSON-RPC client for PHP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages