This library converts given size into human-readable size.
composer require ixnode/php-size-byte
vendor/bin/php-size-byte -V
php-size-byte 0.1.0 (12-19-2022 01:17:26) - Björn Hempel <bjoern@hempel.li>
use Ixnode\PhpSizeByte\SizeByte;
$sizeHumanReadable = (new SizeByte($fileSize))->getHumanReadable();
git clone git@github.com:ixnode/php-size-byte.git && cd php-size-byte
composer install
composer test
This tool is licensed under the MIT License - see the LICENSE file for details