php-unit-conversion
php-unit-conversion copied to clipboard
A library providing full PSR-4 compatible unit conversions
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...
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...
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...
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...