Installation
You can install the package via Composer:
composer require dasundev/laravel-aria2
Laravel will auto-discover the service provider and the Aria2 facade.
You need PHP 8.3+, Laravel 13, and a running aria2c daemon with JSON-RPC enabled.
Optionally, you can publish the config file using:
php artisan vendor:publish --tag=aria2-config
Point the client at your daemon by adding these keys to the .env file:
ARIA2_RPC_URL=http://127.0.0.1:6800/jsonrpcARIA2_RPC_SECRET=change-me
Start aria2 with RPC enabled, for example:
aria2c --enable-rpc --rpc-listen-all=false --rpc-secret=change-me
Keep the daemon on localhost and require a secret. This package sends token:<secret> on every JSON-RPC call.