All Versions
11
Latest Version
Avg Release Cycle
113 days
Latest Release
2509 days ago
Changelog History
Page 1
Changelog History
Page 1
-
v2.1.0 Changes
July 24, 2016- β 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
-
v2.0.1 Changes
December 12, 2015- π¦ 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.
-
v2.0.0 Changes
March 14, 2015- Registered units of measure are now properties of PhysicalQuantity classes, and not individual instances of those classes. As such, registering a new unit with a given PhysicalQuantity will make that unit immediately available to all inntances of that class.
- PhysicalQuantity classes no longer define their units in their constructor, and instead have a new initialize() static method
- The previously-existing registerUnitOfMeasure() method on physical quantity objects has been replaced with a new static addUnit() method
- The HasSoUnitsTrait method addMissingSIPrefixedUnits is now static
- β Added the toNativeUnit() method, to return values in their native unit of measure
- β Added the isEquivalentQuantity() method, to support future situations where it's not obvious whether two physical quantities represent the same quantity type
- π getSupportedUnits() is no longer available on physical quantities
- The PhysicalQuantity parent class is now named AbstractPhysicalQuantity
- β Add a new DemonstrationTests test file, to demonstrate and test typical use cases
- All library exceptions extend from AbstractPhysicalQuantityException, making catching easier
- β Added an interface for PhysicalQuantities, to support future work where not all physical quantity classes necessarily have the same parent
- Registered units of measure are now properties of PhysicalQuantity classes, and not individual instances of those classes. As such, registering a new unit with a given PhysicalQuantity will make that unit immediately available to all inntances of that class.
-
v1.3.3 Changes
March 16, 2015- Loosened Composer requirement on PHP version to >=5.3.0 (was previously 5.3.5).
-
v1.3.1 Changes
August 24, 2014- β Added information in the README about the new SI prefix units generation
-
v1.3.0 Changes
August 24, 2014- β Add support for automatically generating metric-prefixed units from a single base unit
- π» Throw an exception on registering units of measure with names or aliases that collide with existing units on that quantity
- Disallow values that aren't numerical and unit names that aren't strings (ie, type checking)
- β Add new method getSupportedUnits() to Physical Quantities
- β Add new method getAliases() to Units of Measure
- β Add arcminute and arcsecond as angle units
- β Add all SI prefix units to meters, kilograms, seconds, amps, kelvin, candela, pascal, bar, radians, degrees, and arcseconds
-
v1.2.0 Changes
August 16, 2014- β¬οΈ Drop support for PHP 5.3
- π Moved to PSR-4 namespace convention
- β¬οΈ Drop support for an array of names passed in the constructor as a way to specify aliases for UnitOfMeasure objects; addAlias() now required.
- β Add UnitOfMeasure::nativeUnitFactory() and UnitOfMeasure::linearUnitFactory() convenience factory methods
- β Add optional spelling for 'metres' and 'litres'
- β Add Vagrant-based testing virtual machine, for convenience
-
v1.1.2 Changes
February 10, 2014- New units of measure on Area: hectares, international acres
- New units of measure on Temperature: Rankin, Delisle, Newton, RΓ©aumur, RΓΈmer
- Improved unit test coverage
-
v1.1.1 Changes
July 09, 2013- New physical quantity: Angle
- Additional units of measure on Time
-
v1.1
May 07, 2013