ixnode/php-size-byte

PHP Size Byte

Installs: 533

Dependents: 1

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

Language:Shell

0.1.2 2022-12-19 02:42 UTC

This package is auto-updated.

Last update: 2024-11-19 14:05:33 UTC


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