Skip to content

2.0.0

Latest

Choose a tag to compare

@otherguy otherguy released this 27 Apr 13:53
· 1 commit to main since this release
3a9c3ca

2.0.0

Version 2.0 is a modernization of php-currency-api with a stricter PHP 8.3+ baseline, PSR HTTP abstractions, precise decimal math, updated provider support, and a refreshed test/tooling/docs surface.

  • Require PHP 8.3+ and add strict types throughout.
  • Replace hard-wired Guzzle usage with PSR-18 client and PSR-17 request factory support.
  • Add Currency backed enum while keeping Symbol as a deprecation shim.
  • Switch conversion rates from floats to brick/math BigDecimal.
  • Add new built-in drivers:
    • frankfurter
    • currencyapi
    • fastforex
  • Rewrite exchangeratesapi for APILayer’s current endpoint and implement conversion support.
  • Add instance-based DriverFactory registration while preserving DriverFactory::make().
  • Add modern CI/tooling:
    • GitHub Actions
    • Pint
    • PHPStan
    • Rector
    • PHPUnit 12

Please refer to the README.md and UPGRADING.md for features and upgrading instructions.