PHP Units of Measure v2.1.0 Release Notes
Release Date: 2016-07-24 // almost 9 years ago-
- โ Added getUnitDefinitions() method to PhysicalQuantity classes, to get a raw list of UnitofMeasure objects defined on that quantity
- โ Added UPPERCASE templating support for autogenerated metric units to support names like MEGA_METERS, for example.
- ๐ New Quantity physical quantity, with
mole
as the standard unit, to represent the Amount of Substance SI base quantity. - ๐ New SolidAngle physical quantity, with
steradian
as the standard unit, to represent the solid angle quantity - โ Additional aliases for Area units
- โ Additional units for time: decade, century, and millenium
- โ Additional units for volume: teaspoon, tablespoon, gallon, quart, fluid ounce, and pint
Previous changes from v2.0.1
-
- ๐ฆ Migrated package from triplepoint/php-units-of-measure to php-units-of-measure/php-units-of-measure.
- ๐ New physical quantity: Energy
- ๐ New units of measure:
- Area: are and decare
- Length: nautical mile, mil, AU
- Mass: stone, also slightly changed definitions of lb and oz
- Time: yr, and jyr
- Velocity: km/h, ft/s, mph, knot
- ๐ท Automated CI testing now includes HHVM and PHP 7
- โ Removed the heavy vagrant git submodule, it was a silly thing.
- ๐ Expanded the Readme for better contribution and installation instructions.