php-unit-conversion icon indicating copy to clipboard operation
php-unit-conversion copied to clipboard

A library providing full PSR-4 compatible unit conversions

Results 8 php-unit-conversion issues
Sort by recently updated
recently updated
newest added

Is there anything to handle units of measurement for air pressure? Thank you!

- Added pressure UnitType - Added most pressure units [found here](https://wikipedia.org/wiki/Conversion_of_units#Pressure_or_mechanical_stress) - Added tests

The English word is spelled _subtract_ (without an s), not _sub**s**tract_ as the library uses it. Of course simply renaming it to the correct spelling would be a BC, but...

I've adjusted the registered units ```php UnitMap::clear(); UnitMap::add(Meter::class); UnitMap::add(CentiMeter::class); UnitMap::add(MilliMeter::class); ``` But now the `nearest()` helper fails sometimes. ```php Length::nearest(1, Metric::class); ```

The SI unit for mass is kilogramm (kg) and not gramm (g). For me it's okay that the package uses internally a different unit as base, but there should be...

enhancement

E.g. ``` /* You can multiply a unit by calling `multiply` method with a float as an argument * add always returns a new instance */ $quantity = 7; $unitWeight...

enhancement

Hi im having a hard time figuring out why i get a not found. I'm trying to add a Headcount.php unit within Amount unit type. But i get this Class...

question

I'm using this library in a Laravel project where I cast various values to units to be able to easily convert them. The admin area is built with Filament/Livewire. Livewire...