BestServedCold\PhalueObjects\Format
BestServedCold\PhalueObjects\Format\Byte\Binary
BestServedCold\PhalueObjects\Format\Byte\Decimal
Usage:
var_dump(Binary::fromString('100 MB')->getValue());
var_dump(Decimal::fromString('100 MB')->getValue());
var_dump(Binary::fromFloat(123456)->toString());
var_dump((string) Binary::fromFloat(1.208925819614629e24));
Outputs:
double(104857600)
double(100000000)
string(16) "120.56 Kilobytes"
string(11) "1 Yottabyte"
BestServedCold\PhalueObjects\Format\Csv
BestServedcold\PhalueObjects\Format\Json
BestServedCold\PhalueObjects\Format\Xml
BestServedCold\PhalueObjects\Format\Yaml