unit-converter

Convert standard units from one to another with this easy to use, lightweight package

MIT License

Downloads
539K
Stars
128
Committers
16

Bot releases are hidden (Show)

unit-converter - v0.8.8 Latest Release

Published by jordanbrauer almost 3 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/jordanbrauer/unit-converter/compare/v0.8.7...v0.8.8

unit-converter - v0.8.5

Published by jordanbrauer over 3 years ago

  • fixed division by zero errors
  • fixed scientific notation issues while using the binary calculator
  • upgrade PHP Docs and generate a new set of documentation
  • added inHg and hPa units
unit-converter - v0.8.4

Published by jordanbrauer over 4 years ago

This release contains the following changes:

  • new Digital Storage units are available!
  • converting units to themselves is now perfectly safe. See #132
  • various test updates and fixes
  • testing on PHP 7.4 now
  • prevent artifacts and repository meta files from being shipped with coposer package. See #153
unit-converter - Version 0.8.2

Published by jordanbrauer about 5 years ago

Summary

Small release that fixes a rather big bug (#127), as well as a small feature to pass units as "primitive" types and convert a unit to another with instantiating your converter object. Read the new section of the README for more information!

unit-converter - Version 0.8.1

Published by jordanbrauer almost 6 years ago

Summary

This release consists mostly of internal improvements. However, there are some user improvements; notably the new, useful all() method, as well as the improved conversion log.

Another important user related improvement is the new available public methods on the unit converter:

  • getRegistry()
  • getCalculator()
  • registryExists()
  • calculatorExists()
  • whichCalculator()

Enjoy! 👋

unit-converter - Version 0.8.0

Published by jordanbrauer about 6 years ago

Summary

This release contains a number of under-the-hood fixes & implementations, as well as fixes a couple of bugs. For full details on the changes made to this release, see the change log entry for this release.

Keep in mind, that this is still considered a pre-release. At this stage of the project, it is safe assume that the public API of the converter will remain mostly stable. Hopefully for the 0.9.* releases, focus can shift from development to documentation & branding/marketing.

Enjoy!

unit-converter - Version 0.7.1

Published by jordanbrauer about 6 years ago

Summary

This release is a small non-breaking fix to have composer install the correct version containing the ConverterBuilder.

unit-converter - Version 0.7.0

Published by jordanbrauer over 6 years ago

Summary

This release various non-breaking changes. See the change log for complete details.

unit-converter - Version 0.6.7

Published by jordanbrauer over 6 years ago

Release Notes

Fixes:

  • Fixed release workflow. Now all topic branches will target master.
unit-converter - Version 0.6.0

Published by jordanbrauer over 6 years ago

Release Notes

Changes

  • Change: calculate method to check for 'binary calculator' 8eeb1d1

Fixes

  • Fix: typo d0ec600
  • Hack: 'fix' binary calc precision bug (#54) + unitconverter 'refactor' ffc2733

Additions

  • Add: issue template, closes (#61) b6e23a7
  • Add: pull request template, closes (#62) 1db639f
  • Add: method to determine which calculator is in use bb8b7d8
  • Add: method to cast units to a new type 8878048
  • Add: test for different calculator value equivalencies 39ffd1b
  • Add: default precision & rounding mode constants cee784b

Removals

  • Remove unused debug function (for now) 930c9f6
unit-converter - Version 0.5.1

Published by jordanbrauer almost 7 years ago

Release Notes

  • Added missing integration tests for all units of measurement.
  • Add Scientific Symbols for all units of measurement.
  • Change spelling for all units of measurement from American to Oxford/International.
unit-converter - Version 0.5.0

Published by jordanbrauer almost 7 years ago

Release Notes

  • Update: changelog config file & composer script 897d036
  • Feat: add explicit calculator classes to handle all math related operations (#52) 913f3fd
  • Feat: implement calculator into unit converter & unit calculate methods (#53) 7e3ed21
  • Update: scripts 1922847
  • Update: readme to reflect new api 9c43c8d
  • Fix: formatting & docblocks 9118f1e
  • Update: add codeclimate config & travis script updates a559376
  • Update: Add codeclimate badges 3355dd5
  • Fix: unit test missing @covers & @uses docblock annotations df44955
  • Update: coverage scripts 0b6a50e
  • Update: add missing Code Climate YAML config file 19f14da

ATTENTION: This release contains breaking changes for the UnitConverter.

unit-converter - Version 0.4.1

Published by jordanbrauer almost 7 years ago

Release Notes

  • Feat: add changelog (#49) e4ea6fe
  • Fix: api docs (#50) 728d698
unit-converter - Version 0.4.0

Published by jordanbrauer almost 7 years ago

Release Notes

  • Implement Kilopascal and Megapascal and write tests (#29) e1bc33c (@arubacao)
  • remove composer.lock from repo and add it to .gitignore (#30) 37e0f01 (@arubacao)
  • Fix: add missing self conversions for temperature units (#31) 380bdb7
  • Feature/improve travis file (#32) 707fb0a (@arubacao)
  • Adding energy units (#33) 0860032 (@andrewboerema)
  • Added millibar as pressure unit (#34) 9a6eed0 (@teunw)
  • Added time measurements (#35) 611293e (@teunw)
  • Feat: add simple contributing guide for now (#36) cd71bbc
  • Added last weight measures (#37) dc7021e (@teunw)
  • Add first set of dev docs (#44) ca74697
  • scientificSymbol property, getter and setter are added (#47) 19837f1 (@luchianenco)
  • Upgrade: docs & composer version 7c553ad
  • Fix: Energy integration test - wrong unit case for Joule 708f021
unit-converter - Version 0.3.9-beta

Published by jordanbrauer about 7 years ago

Release Notes

  • Base working package (#26)
  • Feat: add speed base unit
  • Feat: add support for metre per second units
  • Feat: add support for kilometer per hour units
  • Feat: add support for miles per hour units
  • Fix: name spelling
  • Fix: swap units of miles and kilometres per hour
  • Fix: all units now use configure() method to configure data
  • Feat: add base temperature unit class
  • Feat: add kelvin temperature unit
  • Feat: add support for celsius
  • Feat: add support for fahrenheit units
  • Fix: using new ::configure() method over explicit value definitions
  • Fix: configure method definition
  • Update: add conversion formulae to calculate methods
  • Feat: add integration test for temp' units - damn °C <-> °F conversions
  • Fix: returned getter to being just that; a getter.
  • Feat: convert() method to expose calculate() - allows for complex calcs
  • Feat: add switch for conditional calculations based upon temp' unit
  • Fix: improper namespace
  • Feat: add base volume unit class + integration test
  • Feat: add support for litre units
  • Feat: add support for mililitre units
  • Feat: add support for US liquid pint units
  • Feat: add support for US Liquid gallon units
  • Feat: add support for cubic metre units
  • Fix: misnamed test file
  • Feat: add support for basic pressure units w/ single integration test
  • Feat: add basic energy units
  • Feat: add gram unit support
  • Feat: add base mass unit class
  • Feat: add kilogram unit support
  • Fix: changed use of "weight" with "mass"
  • Feat: add support for milligram units
  • Feat: add support for Newton units
  • Feat: add support for Pound units
  • Feat: add support for ounce units
  • Feat: add support for metric tonne units
  • Update: move example file
  • Feat: add phpdoc configurations
  • Fix: broken tests using incorrect type of measure for mass, was 'volume'
  • Update: temporary readme 'overhaul'
  • Upgrade: package version