Introduction
Laravel Aria2 is a fluent JSON-RPC client for a running aria2c daemon. It lets you start HTTP, HTTPS, magnet, and torrent transfers from Laravel, stream typed progress back to your application, and fake the client in tests.
The package talks to an existing RPC endpoint. It does not start, stop, or supervise aria2c. Process supervision, UI, storage quotas, and product models stay in the host application.
use Pullr\LaravelAria2\Facades\Aria2;use Pullr\LaravelAria2\Transfer\TransferStatus; Aria2::url('https://example.com/file.iso') ->dir(storage_path('app/downloads/1')) ->onProgress(function (TransferStatus $status) { // }) ->download();
download() is blocking. Run it on a queue worker, not a web request.