byte-units
byte-units copied to clipboard
bits support
What about supporting bits?
What kind of support do you would like for bits? Have you any API proposal?
Same kind of conversion apis.
@gabrielelana Maybe he meant using bits as just another unit. Example:
<?php
echo ByteUnits\Binary::bytes(1)->format('b'); // returns 8b
But that would break the principle of case-insensitivity.
@Cysioland I see, well... nice :smile:
@gabrielelana Do you have any idea, how to resolve that case insensitivity problem? Or we just say: "Screw it, bits are special case"?
@Cysioland "B" for byte and "b" for bit, I don't have any problem with that, "B" and "b" are two different symbols so they could mean two different things, Case insensitivity is an abomination :smile: