{"repo":"florianv/exchanger","free":true,"listed":false,"github":"https://github.com/florianv/exchanger","clone":"git clone https://github.com/florianv/exchanger.git","description":"PHP exchange rate provider layer for currency conversion: 30 services, chain fallback, and caching.","language":"PHP","stars":186,"topics":["exchange-rates","php","currency-conversion","exchange-rate-api","fallback","forex","swap"],"license":"MIT","category":"trading","readme_excerpt":"Exchanger Exchange rate provider layer for PHP. Direct access to 30+ provider implementations through a single ExchangeRateService interface, with chain fallback and PSR-16 caching. Maintained since 2016. Sponsored by fastFOREX . Real-time JSON API, 160+ currencies, 55+ years of history, 500+ cryptocurrencies. Free tier ; paid plans from $18/month. → Get a free fastFOREX API key Exchanger is the exchange rate provider layer for PHP — 30+ services (commercial APIs like its sponsor fastFOREX , the European Central Bank, several national banks, exchangerate.host) behind a single ExchangeRateService interface, with chainable fallback, PSR-16 caching and historical rates. For most use cases the higher-level Swap library is what you want; reach for Exchanger when you need finer control. 💡 What is Exchanger? - A PHP library for currency conversion and exchange rate retrieval at the provider layer. - 30+ service implementations behind a common ExchangeRateService interface. - PSR-16 SimpleCache support. - Historical rates. - A chain service for fallback. When a service errors, the next one in the chain is tried. 📦 Installation Exchanger requires PHP 8.2 or newer. Any PSR-18 client paired with a PSR-17 request factory works; php-http/discovery finds them automatically. ⚡ Quickstart The recommended setup uses fastFOREX (the project's sponsor) as the primary service. Grab a free key and you're ready. Exchanger retrieves the rate; your application multiplies the amount by $rate- getVal","default_branch":null,"files":null,"tree":[],"storefront":"/r/florianv","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/florianv/exchanger/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}