1. Go to this page and download the library: Download martincamen/php-arr-core library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
martincamen / php-arr-core example snippets
use MartinCamen\ArrCore\Domain\Download\DownloadItem;
use MartinCamen\ArrCore\ValueObject\ArrFileSize;
use MartinCamen\ArrCore\ValueObject\Progress;
use MartinCamen\ArrCore\Enum\DownloadStatus;
$item = new DownloadItem(
id: ArrId::fromInt(123),
name: 'Example.Movie.2024',
size: ArrFileSize::fromGigabytes(8.5),
progress: Progress::fromPercentage(42),
status: DownloadStatus::Downloading
);