pullr / laravel-aria2
A fluent Laravel client for aria2 JSON-RPC transfers.
Requires
- php: ^8.3
- illuminate/console: ^13.0
- illuminate/http: ^13.0
- illuminate/process: ^13.0
- illuminate/support: ^13.0
Requires (Dev)
- laravel/pint: ^1.24
- orchestra/testbench: ^11.0
- pestphp/pest: ^4.0
- phpstan/phpstan: ^2.0
README
Introduction
Laravel Aria2 is a fluent JSON-RPC client for a running aria2c daemon. Start HTTP, HTTPS, magnet, or torrent transfers, stream typed progress back to your application, and fake the client in tests — without supervising aria2 itself.
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) { // $status->gid(), percent(), speed(), totalBytes(), displayName() }) ->download();
Official Documentation
Documentation for Laravel Aria2 can be found in the docs directory.
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Thank you for considering contributing to Laravel Aria2! The contribution guide can be found in CONTRIBUTING.md.
This package is developed in this repository. Open pull requests against dasundev/laravel-aria2.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
License
Laravel Aria2 is open-sourced software licensed under the MIT license.