alexs / unitconverter
PHP Unit converter
1.0.1-stable
2017-09-21 10:31 UTC
Requires
- php: >=5.0
Requires (Dev)
- php: >=7.0.0
- phpunit/phpunit: ^6.2
This package is auto-updated.
Last update: 2025-03-29 00:38:10 UTC
README
PHP Unit converter
Examples:
<?php
use alexs\unitconverter\LengthConverter;
use alexs\unitconverter\TemperatureConverter;
use alexs\unitconverter\WeightConverter;
var_dump(LengthConverter::mileToKm(100)); // 1.60934
var_dump(TemperatureConverter::cToF(36.6)); // 97.88
var_dump(WeightConverter::kgToLbs(80)); // 176.36981