ixnode / php-size-byte
PHP Size Byte
Installs: 560
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Language:Shell
Requires
- php: ^8.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.13
- ixnode/bash-version-manager: ^0.1.3
- phpmd/phpmd: ^2.13
- phpstan/phpstan: ^1.9
- phpunit/phpunit: ^9.5
- povils/phpmnd: ^3.0
- rector/rector: ^0.15.1
README
This library converts given size into human-readable size.
Installation
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>
Usage
use Ixnode\PhpSizeByte\SizeByte;
$sizeHumanReadable = (new SizeByte($fileSize))->getHumanReadable();
Development
git clone git@github.com:ixnode/php-size-byte.git && cd php-size-byte
composer install
composer test
License
This tool is licensed under the MIT License - see the LICENSE file for details