Skip to content

Releases: florianv/swap

Version 4.5.0

Choose a tag to compare

@alies-dev alies-dev released this 09 Mar 22:07
f3b58c8

What's Changed

Breaking Changes

  • Minimum PHP version raised to 8.2 (was 7.4/8.0)
  • Minimum PHPUnit version raised to 11.0 (was 9.x/10.x)

Improvements

  • Added suggest section to composer.json for PSR-18 client and PSR-17 factory implementations, guiding users toward compatible HTTP dependencies
  • Improved discovery test — Now verifies discovery works end-to-end by creating a service via Factory

Infrastructure & Tooling

  • Modernized CI pipeline — Replaced Travis CI with GitHub Actions; test matrix covers PHP 8.2, 8.3, 8.4, and 8.5
  • Added Psalm static analysis (level 1) with dedicated CI workflow and baseline
  • Added backward compatibility check workflow
  • Migrated all tests to PHPUnit 11 attributes — Replaced @test and @dataProvider annotations
  • Added composer scriptstest, psalm, cs:fix, cs:check
  • Removed legacy CI configs.scrutinizer.yml, .styleci.yml, .travis.yml
  • Updated README badges — Travis badge replaced with GitHub Actions Tests and Psalm badges

Full Changelog: 4.4.0...4.5.0

Version 4.4.0

Choose a tag to compare

@alies-dev alies-dev released this 09 Mar 18:09
07a470c

Bug Fixes

  • PHP 8.4 compatibility: Use explicit nullable types (?Type) instead of implicit nullable parameters, fixing deprecation notices on PHP 8.4 (Swap.php, Factory.php) #144, #147
  • Replace deprecated HttpClientDiscovery: Use Psr18ClientDiscovery instead of the deprecated HttpClientDiscovery in Factory.php #142

Maintenance

  • New runtime dependencies: Added symfony/http-client and php-http/message-factory to require
  • New suggestion: php-http/discovery added to suggest for auto-discovery of HttpClient
  • Documentation: Multiple README and docs updates

Full Changelog: 4.3.0...4.4.0

Version 4.3.0

Choose a tag to compare

@florianv florianv released this 28 Dec 10:15
88edd27
  • PHP 8 and PHPUnit 9 support

Version 4.2.0

Choose a tag to compare

@florianv florianv released this 19 Aug 08:20
2c57323

xChangeApi.com support

Version 4.1.0

Choose a tag to compare

@florianv florianv released this 05 Jun 12:30

Added way to add services by instance

Version 4.0.1

Choose a tag to compare

@florianv florianv released this 30 May 10:49

Making Swap not final to allow mocking

Version 4.0.0

Choose a tag to compare

@florianv florianv released this 12 Feb 11:26
ad21706

See CHANGELOG to get more informations about the changes in this new version

Version 3.5.0

Choose a tag to compare

@florianv florianv released this 04 Jan 12:29
  • Added CurrencyConverterApi service

Fixer now requires an access key

Choose a tag to compare

@florianv florianv released this 19 Apr 14:21
9948c8b
  • Fixed Fixer service which now requires an access_key

Stable version of Exchanger

Choose a tag to compare

@florianv florianv released this 19 Feb 11:36
  • Added Forge service
  • Added CurrencyDataFeed service
  • Supported historical rates in National Bank Of Romania