├── .gitignore ├── .travis.yml ├── .vimrc ├── LICENSE ├── README.md ├── composer.json ├── phpunit.xml ├── src └── ByteUnits │ ├── Binary.php │ ├── ConversionException.php │ ├── Formatter.php │ ├── Metric.php │ ├── NegativeBytesException.php │ ├── ParseException.php │ ├── Parser.php │ ├── PowerScale.php │ ├── System.php │ └── functions.php └── tests ├── ByteUnits ├── ArithmeticTest.php ├── BinarySystemTest.php ├── BoxingTest.php ├── CompareTest.php ├── ConversionBetweenSystemsTest.php ├── FormatInBinarySystemTest.php ├── FormatInMetricSystemTest.php ├── MetricSystemTest.php └── ParseTest.php └── bootstrap.php /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabrielelana/byte-units/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabrielelana/byte-units/HEAD/.travis.yml -------------------------------------------------------------------------------- /.vimrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabrielelana/byte-units/HEAD/.vimrc -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabrielelana/byte-units/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabrielelana/byte-units/HEAD/README.md -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabrielelana/byte-units/HEAD/composer.json -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabrielelana/byte-units/HEAD/phpunit.xml -------------------------------------------------------------------------------- /src/ByteUnits/Binary.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabrielelana/byte-units/HEAD/src/ByteUnits/Binary.php -------------------------------------------------------------------------------- /src/ByteUnits/ConversionException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabrielelana/byte-units/HEAD/src/ByteUnits/ConversionException.php -------------------------------------------------------------------------------- /src/ByteUnits/Formatter.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabrielelana/byte-units/HEAD/src/ByteUnits/Formatter.php -------------------------------------------------------------------------------- /src/ByteUnits/Metric.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabrielelana/byte-units/HEAD/src/ByteUnits/Metric.php -------------------------------------------------------------------------------- /src/ByteUnits/NegativeBytesException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabrielelana/byte-units/HEAD/src/ByteUnits/NegativeBytesException.php -------------------------------------------------------------------------------- /src/ByteUnits/ParseException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabrielelana/byte-units/HEAD/src/ByteUnits/ParseException.php -------------------------------------------------------------------------------- /src/ByteUnits/Parser.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabrielelana/byte-units/HEAD/src/ByteUnits/Parser.php -------------------------------------------------------------------------------- /src/ByteUnits/PowerScale.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabrielelana/byte-units/HEAD/src/ByteUnits/PowerScale.php -------------------------------------------------------------------------------- /src/ByteUnits/System.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabrielelana/byte-units/HEAD/src/ByteUnits/System.php -------------------------------------------------------------------------------- /src/ByteUnits/functions.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabrielelana/byte-units/HEAD/src/ByteUnits/functions.php -------------------------------------------------------------------------------- /tests/ByteUnits/ArithmeticTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabrielelana/byte-units/HEAD/tests/ByteUnits/ArithmeticTest.php -------------------------------------------------------------------------------- /tests/ByteUnits/BinarySystemTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabrielelana/byte-units/HEAD/tests/ByteUnits/BinarySystemTest.php -------------------------------------------------------------------------------- /tests/ByteUnits/BoxingTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabrielelana/byte-units/HEAD/tests/ByteUnits/BoxingTest.php -------------------------------------------------------------------------------- /tests/ByteUnits/CompareTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabrielelana/byte-units/HEAD/tests/ByteUnits/CompareTest.php -------------------------------------------------------------------------------- /tests/ByteUnits/ConversionBetweenSystemsTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabrielelana/byte-units/HEAD/tests/ByteUnits/ConversionBetweenSystemsTest.php -------------------------------------------------------------------------------- /tests/ByteUnits/FormatInBinarySystemTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabrielelana/byte-units/HEAD/tests/ByteUnits/FormatInBinarySystemTest.php -------------------------------------------------------------------------------- /tests/ByteUnits/FormatInMetricSystemTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabrielelana/byte-units/HEAD/tests/ByteUnits/FormatInMetricSystemTest.php -------------------------------------------------------------------------------- /tests/ByteUnits/MetricSystemTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabrielelana/byte-units/HEAD/tests/ByteUnits/MetricSystemTest.php -------------------------------------------------------------------------------- /tests/ByteUnits/ParseTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabrielelana/byte-units/HEAD/tests/ByteUnits/ParseTest.php -------------------------------------------------------------------------------- /tests/bootstrap.php: -------------------------------------------------------------------------------- 1 |