Download the PHP package zenstruck/bytes without Composer
On this page you can find all versions of the php package zenstruck/bytes. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download zenstruck/bytes
More information about zenstruck/bytes
Files in zenstruck/bytes
Download zenstruck/bytes
More information about zenstruck/bytes
Files in zenstruck/bytes
Vendor zenstruck
Package bytes
Short Description Parse, manipulate, humanize, and format bytes.
License MIT
Homepage https://github.com/zenstruck/bytes
Package bytes
Short Description Parse, manipulate, humanize, and format bytes.
License MIT
Homepage https://github.com/zenstruck/bytes
Keywords unitinformation
Please rate this library. Is it a good library?
Informations about the package bytes
zenstruck/bytes
A value object to parse, manipulate, humanize, and format bytes.
Installation
Usage
Create a Zenstruck\Bytes
object and access its value:
Formatting
By default, when a Zenstruck\Bytes
object is converted to a string, it humanizes the
to make it easier to read.
You can customize the formatting:
Unit Conversion
If you'd like a consistent unit to be used when formatting, use the to()
method
with a valid informational unit:
Arithmetic
Perform add and subtract operations:
Note: These operations are immutable.
Comparisons
You can compare Zenstruck\Byte
objects:
All versions of bytes with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.0
The package zenstruck/bytes contains the following files
Loading the files please wait ....