PHPackages                             florianv/swap-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. florianv/swap-bundle

ActiveSymfony-bundle

florianv/swap-bundle
====================

Integrates the Swap library with Symfony

6.0.0(2mo ago)62416.1k↓17.4%331MITPHPPHP ^8.2CI passing

Since May 31Pushed 2mo ago5 watchersCompare

[ Source](https://github.com/florianv/symfony-swap)[ Packagist](https://packagist.org/packages/florianv/swap-bundle)[ Docs](https://github.com/florianv/FlorianvSwapBundle)[ RSS](/packages/florianv-swap-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (16)Versions (24)Used By (1)

[![](https://camo.githubusercontent.com/e9f2edc0c4c1fdecc071323f862b779f03a21b1b4d83746b97fbf4e01f607ac9/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f737761702e6173736574732f737761705f6c6f676f2e706e67)](https://camo.githubusercontent.com/e9f2edc0c4c1fdecc071323f862b779f03a21b1b4d83746b97fbf4e01f607ac9/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f737761702e6173736574732f737761705f6c6f676f2e706e67) Symfony Swap
======================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#-symfony-swap)

[![Tests](https://github.com/florianv/symfony-swap/actions/workflows/tests.yml/badge.svg)](https://github.com/florianv/symfony-swap/actions/workflows/tests.yml)[![Psalm](https://github.com/florianv/symfony-swap/actions/workflows/psalm.yml/badge.svg)](https://github.com/florianv/symfony-swap/actions/workflows/psalm.yml)[![Total Downloads](https://camo.githubusercontent.com/584b5098b735eee7f156dcab0c23493404f6e8d5ed74942ace6d24fe2d33dd20/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f666c6f7269616e762f737761702d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/florianv/swap-bundle)[![Version](https://camo.githubusercontent.com/ab4a09346cfc175f5c29615c21f2fb0c15293fd95c466c223c6afd5b523a1c75/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f666c6f7269616e762f737761702d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/florianv/swap-bundle)

Swap allows you to retrieve currency exchange rates from various services such as **[Fixer](https://fixer.io/)**, **[Currency Data](https://currencylayer.com)**or **[Exchange Rates Data](https://exchangeratesapi.io)** and optionally cache the results.

Sponsors
--------

[](#sponsors)

  [![](https://camo.githubusercontent.com/0d10ffe181170f80111526baf4835225593324a3e10e8c3cf0f396549a9b6d9c/68747470733a2f2f6173736574732e6170696c617965722e636f6d2f617069732f66697865722e706e67)](https://camo.githubusercontent.com/0d10ffe181170f80111526baf4835225593324a3e10e8c3cf0f396549a9b6d9c/68747470733a2f2f6173736574732e6170696c617965722e636f6d2f617069732f66697865722e706e67) [Fixer](https://fixer.io/) is a simple and lightweight API for foreign exchange rates that supports up to 170 world currencies.   [![](https://camo.githubusercontent.com/7fcddd392c51aee3d78852b41590841f7186fab34870b5dc50f90989fd1a56b7/68747470733a2f2f6173736574732e6170696c617965722e636f6d2f617069732f63757272656e63795f646174612e706e67)](https://camo.githubusercontent.com/7fcddd392c51aee3d78852b41590841f7186fab34870b5dc50f90989fd1a56b7/68747470733a2f2f6173736574732e6170696c617965722e636f6d2f617069732f63757272656e63795f646174612e706e67) [Currency Data](https://currencylayer.com) provides reliable exchange rates and currency conversions for your business up to 168 world currencies.   [![](https://camo.githubusercontent.com/a1f40efebb340530a15ac4fb946a8657b802aece08961e29c8e3ca9cac2dba36/68747470733a2f2f6173736574732e6170696c617965722e636f6d2f617069732f65786368616e676572617465735f646174612e706e67)](https://camo.githubusercontent.com/a1f40efebb340530a15ac4fb946a8657b802aece08961e29c8e3ca9cac2dba36/68747470733a2f2f6173736574732e6170696c617965722e636f6d2f617069732f65786368616e676572617465735f646174612e706e67) [Exchange Rates Data](https://exchangeratesapi.io) provides reliable exchange rates and currency conversions for your business with over 15 data sources. QuickStart
----------

[](#quickstart)

```
$ composer require florianv/swap-bundle php-http/message php-http/guzzle6-adapter ^1.0
```

Documentation
-------------

[](#documentation)

The complete documentation can be found [here](https://github.com/florianv/symfony-swap/blob/master/Resources/doc/index.md).

Services
--------

[](#services)

Here is the list of the currently implemented services:

ServiceBase CurrencyQuote CurrencyHistorical[Fixer](https://fixer.io/)EUR (free, no SSL), \* (paid)\*Yes[Currency Data](https://currencylayer.com)USD (free), \* (paid)\*Yes[Exchange Rates Data](https://exchangeratesapi.io)USD (free), \* (paid)\*Yes[Abstract](https://www.abstractapi.com)\*\*Yes[coinlayer](https://coinlayer.com)\* Crypto (Limited standard currencies)\* Crypto (Limited standard currencies)Yes[Fixer](https://fixer.io)EUR (free, no SSL), \* (paid)\*Yes[currencylayer](https://currencylayer.com)USD (free), \* (paid)\*Yes[exchangeratesapi](https://exchangeratesapi.io)USD (free), \* (paid)\*Yes[European Central Bank](https://www.ecb.europa.eu/home/html/index.en.html)EUR\*Yes[National Bank of Georgia](https://nbg.gov.ge)\*GELYes[National Bank of the Republic of Belarus](https://www.nbrb.by)\*BYN (from 01-07-2016),
BYR (01-01-2000 - 30-06-2016),
BYB (25-05-1992 - 31-12-1999)Yes[National Bank of Romania](http://www.bnr.ro)RON, AED, AUD, BGN, BRL, CAD, CHF, CNY, CZK, DKK, EGP, EUR, GBP, HRK, HUF, INR, JPY, KRW, MDL, MXN, NOK, NZD, PLN, RSD, RUB, SEK, TRY, UAH, USD, XAU, XDR, ZARRON, AED, AUD, BGN, BRL, CAD, CHF, CNY, CZK, DKK, EGP, EUR, GBP, HRK, HUF, INR, JPY, KRW, MDL, MXN, NOK, NZD, PLN, RSD, RUB, SEK, TRY, UAH, USD, XAU, XDR, ZARYes[National Bank of Ukranie](https://bank.gov.ua)\*UAHYes[Central Bank of the Republic of Turkey](http://www.tcmb.gov.tr)\*TRYYes[Central Bank of the Republic of Uzbekistan](https://cbu.uz)\*UZSYes[Central Bank of the Czech Republic](https://www.cnb.cz)\*CZKYes[Central Bank of Russia](https://cbr.ru)\*RUBYes[Bulgarian National Bank](http://bnb.bg)\*BGNYes[WebserviceX](http://www.webservicex.net)\*\*No[1Forge](https://1forge.com)\* (free but limited or paid)\* (free but limited or paid)No[Cryptonator](https://www.cryptonator.com)\* Crypto (Limited standard currencies)\* Crypto (Limited standard currencies)No[CurrencyDataFeed](https://currencydatafeed.com)\* (free but limited or paid)\* (free but limited or paid)No[Open Exchange Rates](https://openexchangerates.org)USD (free), \* (paid)\*Yes[Xignite](https://www.xignite.com)\*\*Yes[Currency Converter API](https://www.currencyconverterapi.com)\*\*Yes (free but limited or paid)[xChangeApi.com](https://xchangeapi.com)\*\*Yes[fastFOREX.io](https://www.fastforex.io)USD (free), \* (paid)\*No[exchangerate.host](https://www.exchangerate.host)\*\*YesArray\*\*YesCredits
-------

[](#credits)

- [Florian Voutzinos](https://github.com/florianv)
- [All Contributors](https://github.com/florianv/symfony-swap/contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [LICENSE](https://github.com/florianv/symfony-swap/blob/master/Resources/meta/LICENSE) for more information.

###  Health Score

66

—

FairBetter than 99% of packages

Maintenance86

Actively maintained with recent releases

Popularity50

Moderate usage in the ecosystem

Community28

Small or concentrated contributor base

Maturity85

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 67% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~195 days

Recently: every ~424 days

Total

23

Last Release

70d ago

Major Versions

1.x-dev → v2.0.02015-05-28

v2.3.0 → v3.0.02018-03-24

3.x-dev → 4.0.02019-07-29

4.1.0 → 5.0.02020-03-04

v5.5.0 → 6.0.02026-03-09

PHP version history (3 changes)v3.0.0PHP ^5.6|^7.0

5.2PHP ^7.1.3|^8.0

6.0.0PHP ^8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1586668?v=4)[Florian Voutzinos](/maintainers/florianv)[@florianv](https://github.com/florianv)

---

Top Contributors

[![florianv](https://avatars.githubusercontent.com/u/1586668?v=4)](https://github.com/florianv "florianv (71 commits)")[![alies-dev](https://avatars.githubusercontent.com/u/5278175?v=4)](https://github.com/alies-dev "alies-dev (11 commits)")[![xterr](https://avatars.githubusercontent.com/u/619509?v=4)](https://github.com/xterr "xterr (3 commits)")[![marcortola](https://avatars.githubusercontent.com/u/15958009?v=4)](https://github.com/marcortola "marcortola (3 commits)")[![Chris8934](https://avatars.githubusercontent.com/u/44963939?v=4)](https://github.com/Chris8934 "Chris8934 (2 commits)")[![anorgan](https://avatars.githubusercontent.com/u/1270389?v=4)](https://github.com/anorgan "anorgan (2 commits)")[![ping-localhost](https://avatars.githubusercontent.com/u/37925797?v=4)](https://github.com/ping-localhost "ping-localhost (2 commits)")[![hdimo](https://avatars.githubusercontent.com/u/2865108?v=4)](https://github.com/hdimo "hdimo (1 commits)")[![lalex](https://avatars.githubusercontent.com/u/869741?v=4)](https://github.com/lalex "lalex (1 commits)")[![luxifer](https://avatars.githubusercontent.com/u/419078?v=4)](https://github.com/luxifer "luxifer (1 commits)")[![ugurerkan](https://avatars.githubusercontent.com/u/473959?v=4)](https://github.com/ugurerkan "ugurerkan (1 commits)")[![dragosprotung](https://avatars.githubusercontent.com/u/1081073?v=4)](https://github.com/dragosprotung "dragosprotung (1 commits)")[![remmel](https://avatars.githubusercontent.com/u/937836?v=4)](https://github.com/remmel "remmel (1 commits)")[![ruudk](https://avatars.githubusercontent.com/u/104180?v=4)](https://github.com/ruudk "ruudk (1 commits)")[![sfblaauw](https://avatars.githubusercontent.com/u/2537172?v=4)](https://github.com/sfblaauw "sfblaauw (1 commits)")[![stephpy](https://avatars.githubusercontent.com/u/232744?v=4)](https://github.com/stephpy "stephpy (1 commits)")[![stevenbrookes](https://avatars.githubusercontent.com/u/43211757?v=4)](https://github.com/stevenbrookes "stevenbrookes (1 commits)")[![ekyna](https://avatars.githubusercontent.com/u/3483641?v=4)](https://github.com/ekyna "ekyna (1 commits)")[![chekalsky](https://avatars.githubusercontent.com/u/241584?v=4)](https://github.com/chekalsky "chekalsky (1 commits)")

---

Tags

currencycurrency-convertercurrency-exchange-ratescurrency-ratesexchange-ratesphpsymfonysymfonybundlemoneycurrencyconversionRateexchange

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/florianv-swap-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/florianv-swap-bundle/health.svg)](https://phpackages.com/packages/florianv-swap-bundle)
```

###  Alternatives

[florianv/laravel-swap

Currency exchange rates library for Laravel and Lumen

3342.0M2](/packages/florianv-laravel-swap)[florianv/swap

Exchange rates library for PHP

1.3k6.4M16](/packages/florianv-swap)[florianv/exchanger

Currency exchange rates framework for PHP

1874.7M15](/packages/florianv-exchanger)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[maciej-sz/nbp-php

API for accessing Polish National Bank (NBP - Narodowy Bank Polski) currency and commodities exchange rates

1343.3k1](/packages/maciej-sz-nbp-php)[headsnet/money-bundle

Integrates moneyphp/money into your Symfony application

1116.2k](/packages/headsnet-money-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
