florianv/swap
Exchange rates library for PHP
4.5.0
7.0M downloads/mo
#2266 most downloaded on Packagist
florianv/swap
What this package is like to depend on
Last release 5 months ago
09 Mar 2026
Ships unpredictably
gaps range from 5 weeks to 5.2 years
Rarely documented
notes for 7 of 31 stable releases
Nothing withdrawn
no release was ever pulled
12 years old
31 releases · first in 2014
2 releases in the last 12 months
see the full history below
Release timeline
31 releases · May 2014 to Mar 2026Releases
latest 31-
4.5.009 Mar 2026Release notes
Open source →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
suggestsection 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
@testand@dataProviderannotations - Added composer scripts —
test,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
-
4.4.009 Mar 2026Release notes
Open source →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: UsePsr18ClientDiscoveryinstead of the deprecatedHttpClientDiscoveryin 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
-
4.3.028 Dec 2020 -
4.2.019 Aug 2020Nothing published for this version
-
4.1.005 Jun 2020 -
4.0.130 May 2019 -
4.0.012 Feb 2019Release notes
Open source →See CHANGELOG to get more informations about the changes in this new version
-
3.5.004 Jan 2019 -
3.4.019 Apr 2018Nothing published for this version
-
3.3.019 Feb 2018Nothing published for this version
-
3.2.002 Oct 2017Nothing published for this version
-
3.1.027 Mar 2017Nothing published for this version
-
3.0.202 Dec 2016Nothing published for this version
-
3.0.108 Oct 2016Nothing published for this version
-
v3.0.018 Sep 2016Nothing published for this version
-
v2.6.109 Nov 2017Nothing published for this version
-
v2.6.020 Jun 2016Nothing published for this version
-
v2.5.020 Apr 2016Nothing published for this version
-
v2.4.128 Mar 2016Nothing published for this version
-
v2.4.016 Mar 2016Nothing published for this version
-
v2.3.109 Mar 2016Nothing published for this version
-
v2.3.004 Jan 2016Nothing published for this version
-
v2.2.023 Jul 2015Nothing published for this version
-
v2.1.010 Jun 2015Nothing published for this version
-
v2.0.127 Apr 2015Nothing published for this version
-
v2.0.015 Jan 2015Nothing published for this version
-
v1.3.022 Jun 2014Nothing published for this version
-
v1.2.007 Jun 2014Nothing published for this version
-
v1.1.005 Jun 2014Nothing published for this version
-
v1.0.131 May 2014Nothing published for this version
-
v1.0.012 May 2014Nothing published for this version