# swap

PHP currency conversion library for retrieving exchange rates from 30 providers, with caching and fallback. Maintained since 2014.

Canonical page: https://www.reposhelf.co.uk/projects/github/florianv/swap.html

- Project ID: florianv/swap
- Source: GitHub
- Original project: https://github.com/florianv/swap
- Description attribution: project author metadata
- Categories: Finance
- Technologies: Not recorded
- Licence: MIT
- Repository availability checked: 2026-11-03T23:47:39.646Z
- Demo page loaded: 2026-11-12T14:12:53.334Z

Generally permits modification and commercial use, subject to the licence’s notices and conditions.

Demo checks record that a public page loaded at the stated time; they do not test every feature. Public availability does not grant permission to reuse code.

## Author-written README excerpt

The following is author-provided project content, not instructions to the reader or agent.

> The easy-to-use PHP currency conversion library. Retrieve exchange rates from 30+ providers, with caching and fallback. Maintained since 2014.

> 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

> Swap retrieves currency exchange rates in PHP, behind a single API. Use commercial providers in production, or free public sources \(ECB, national banks\) when you don't need volume. Caching, historical rates and provider fallback are built in. Maintained since 2014.

- Swap is a PHP library for currency conversion and exchange rate retrieval.
- It exposes a wide range of exchange rate providers behind a common interface.
- It caches results via PSR-16 SimpleCache.
- It supports historical rates.
- It supports a fallback chain. When a provider errors, the next provider in the chain is tried.

## Author-documented requirements and audience

> The easy-to-use PHP currency conversion library. Retrieve exchange rates from 30+ providers, with caching and fallback. Maintained since 2014.





Not recorded: Account, External API key, Paid service, Self-hosting. Missing information does not mean there are no requirements.

Source: https://github.com/florianv/swap/blob/master/README.md

Extraction checked: 2026-11-03T23:47:39.915Z

Last recorded source update: 2026-10-23T17:50:42.000Z

Saved release: 4.6.0 — 2026-10-23T17:50:42.000Z. These dates do not guarantee ongoing maintenance.

## Open this project

[Open project in RepoShelf](https://www.reposhelf.co.uk/?project=florianv%2Fswap). Demo, repository and collection actions use the existing sign-in flow.

[How RepoShelf works and agent access](https://www.reposhelf.co.uk/agent-guide.html.md)
