NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #2650 most downloaded on Packagist
PHP currency conversion library for retrieving exchange rates from 30+ providers, with caching and fallback.
Latest stable
4.6.0
Last release 1 months ago
23 Oct 2026
Ships unpredictably
gaps range from 5 weeks to 5.2 years
Most releases are documented
notes for 20 of 32 stable releases
Nothing withdrawn
no release was ever pulled
13 years old
32 releases · first in 2014
Drag across the ruler to compare, or tap a release to open it.
Hardened CI: read-only permissions, cancelled superseded runs, timeouts, Composer caching, and PHPUnit failing on warnings and deprecations.
Registry::register() under a core name now take effect. Creating a Registry (which every Builder/Factory does) used to re-register the core services and silently overwrite such a registration. If you have an old Registry::register() call for a core identifier, it now replaces the core service. (#162)florianv/exchanger ^2.11, which brings its provider fixes: CurrencyConverter no longer leaks the API key into error messages, responses without a rate date are reported as service errors, and zero currency units no longer cause a division by zero. (#158)Swap::latest() and Swap::historical() document the exceptions they throw. (#161)ClientInterface is the documented primary HTTP client type. HTTPlug's HttpClient is still accepted for backward compatibility. The HTTP caching example now uses PSR-18 and PSR-17 classes. (#161)psalm/plugin-phpunit at level 1, and the baseline is gone. Type coverage is published to Shepherd. (#160)CONTRIBUTING.md with a policy for AI-assisted contributions, and a pull request template. (#157)Full Changelog: 4.5.0...4.6.0
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Minimum PHP version raised to 8.2 (was 7.4/8.0)
suggest section to composer.json for PSR-18 client and PSR-17 factory implementations, guiding users toward compatible HTTP dependenciesFactory@test and @dataProvider annotationstest, psalm, cs:fix, cs:check.scrutinizer.yml, .styleci.yml, .travis.ymlFull Changelog: https://github.com/florianv/swap/compare/4.4.0...4.5.0
PHP 8.4 compatibility: Use explicit nullable types (?Type) instead of implicit nullable parameters, fixing deprecation notices on PHP 8.4 (Swap.php, F…
HttpClientDiscovery: Use Psr18ClientDiscovery instead of the deprecated HttpClientDiscovery in Factory.php #142Full Changelog: https://github.com/florianv/swap/compare/4.3.0...4.4.0
PHP 8 and PHPUnit 9 support
Nothing published for this version
Added way to add services by instance
Added way to add services by instance
Making Swap not final to allow mocking
Making Swap not final to allow mocking
See CHANGELOG to get more informations about the changes in this new version
See CHANGELOG to get more informations about the changes in this new version
ExchangeRate::getProviderName()InternalException only used in the PhpArray servicegetCurrencyPair() to the exchange rate objectsSupportsHistoricalQueries traitAdded CurrencyConverterApi service
Fixed Fixer service which now requires an access_key
Supported historical rates in National Bank Of Romania
Support crypto currencies via Cryptonator
Support crypto currencies via Cryptonator
New Russian Central Bank service
New Russian Central Bank service
Update exchanger to include this bug fix https://github.com/florianv/exchanger/pull/5
Update exchanger to include this bug fix https://github.com/florianv/exchanger/pull/5
Update Exchanger to version 0.2.0
Update Exchanger to version 0.2.0
ability to retrieve historical rates
New major version including:
This log contains the important changes for the 3.x versions.
Added CurrencyConverterApi service
Fixed Fixer service which now requires an access_key
Added Forge service
Added CurrencyDataFeed service
Supported historical rates in National Bank Of Romania
Support crypto currencies via Cryptonator
New Russian Central Bank service
e5234ea Added a .gitattributes file
24ba8f3 Use Httplug instead of egeloen
638255b PSR Cache implementation
80abb02 Add documentation about caching
acd8eb6 Removed currency codes enumeration
b0a8aba Added interfaces for CurrencyPair and Rate
eefb252 Removed unused InvalidCurrencyCodeException
457a72a New Swap
02f0b66 Updated the documentation
55ab175 Rely on Exchanger 0.1
92a7d2c Updated README
feb6102 Added a CHANGELOG file
Fixed now invalid Google service url
Fixed now invalid Google service url
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Fixed the way to retrieve body content
Fixed the way to retrieve body content
Used https://github.com/egeloen/ivory-http-adapter as HttpAdapter
Added a factory method CurrencyPair::createFromString
Added an adapter layer to support different HTTP clients
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.