currency

A PHP library that gives arbitrary precision currency maths with locale-aware formatting - integrated with Laravel or stand-alone

MIT License

Downloads
1.2K
Stars
2
Committers
1
currency - 0.5.4 Latest Release

Published by code-distortion almost 2 years ago

[0.5.4] - 2022-12-19

Added

  • Added support for PHP 8.2
currency - 0.5.3

Published by code-distortion almost 2 years ago

[0.5.3] - 2022-12-06

Added

  • Added support for Laravel 9
  • Updated tests so they run again
currency - 0.5.2

Published by code-distortion almost 3 years ago

[0.5.2] - 2022-01-01

Fixed

  • Changed dependency list to refer to specific versions of PHP - to stop installation on platforms with future versions of PHP before being tested
currency - 0.5.1

Published by code-distortion almost 3 years ago

[0.5.1] - 2021-12-23

Added

  • Added support for PHP 8.1
  • Added phpstan ^1.0 to dev dependencies
  • New ->abs() method
currency - 0.5.0

Published by code-distortion over 3 years ago

[0.5.0] - 2021-04-23

Changed (breaking)

  • Tweaked the way nulls are handled in calculations. Now:
    • Adding or subtracting null with null will give null,
    • Adding or subtracting a value (eg. 5) with null will give the value (5),
    • Multiplying or dividing null with null will give null,
    • Multiplying or dividing a value (eg. 5) with null will give null,

Added

  • New ->isNull() method
currency - 0.4.3

Published by code-distortion over 3 years ago

[0.4.3] - 2021-02-21

Added

  • Added support for PHP 8
  • Added Laravel 8
  • Updated to PSR12
currency - 0.4.2

Published by code-distortion over 4 years ago

Added

  • Laravel 7
currency - 0.4.1

Published by code-distortion over 4 years ago

Added

  • GitHub actions workflows file

Changed

  • Updated the code-of-conduct to https://www.contributor-covenant.org/version/2/0/code_of_conduct.html
  • Added Treeware details
  • Bumped dependencies
  • Updated non-Testbench tests so they could use the non-namespaced phpunit TestCase from old versions of phpunit (because old versions of Testbench require old versions of phpunit). This allowed testing back to Laravel 5.2.
currency - v0.4.0

Published by code-distortion almost 5 years ago

[0.4.0] - 2019-11-27

Changed

  • Changed the Laravel config file name
currency - v0.3.1

Published by code-distortion almost 5 years ago

Changed

  • Added custom exceptions
currency - v0.3.0

Published by code-distortion almost 5 years ago

Changed (breaking)

  • Updated the use of code-distortion/options which has changed ->resolve(x) to be chainable
currency - v0.2.0

Published by code-distortion almost 5 years ago

Added

  • Updates to documentation

Changed (breaking)

  • Altered format() to use code-distortion/options based option values
  • Changed locale, noBreakWhitespace and decPl to be format-settings
  • Swapped instantiation parameters $curCode and $value
  • Altered instantiation to not require a curCode - provided a default has been specified

Fixed

  • Changed the Laravel unit-test to an integration-test, and updated it to use the service-provider
currency - v0.1.2

Published by code-distortion almost 5 years ago

Added

  • beta release
Package Rankings
Top 23.57% on Packagist.org
Badges
Extracted from project README
Latest Version on Packagist GitHub Workflow Status Buy The World a Tree Contributor Covenant