PHPackages                             part-db/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. part-db/swap-bundle

ActiveSymfony-bundle

part-db/swap-bundle
===================

Fork of florianv/swap-bundle, modernized for use with Part-DB. Integrates the Swap library with Symfony

v6.1.0(8mo ago)013.4k↓10.8%MITPHPPHP ^7.1.3|^8.0CI passing

Since Sep 5Pushed 8mo agoCompare

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

READMEChangelog (2)Dependencies (10)Versions (3)Used By (0)

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

[](#-symfony-swap)

**This is a fork of [florianv/symfony-swap](https://github.com/florianv/symfony-swap) for the use in Part-DB.**

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 part-db/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

38

—

LowBetter than 85% of packages

Maintenance60

Regular maintenance activity

Popularity26

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 71% 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 ~0 days

Total

2

Last Release

255d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/966f0c4a6fd593c7a9e3e0c950f4e44dfa6caaf09609500cdce765b1eba7a855?d=identicon)[jbtronics](/maintainers/jbtronics)

---

Top Contributors

[![florianv](https://avatars.githubusercontent.com/u/1586668?v=4)](https://github.com/florianv "florianv (71 commits)")[![jbtronics](https://avatars.githubusercontent.com/u/5410681?v=4)](https://github.com/jbtronics "jbtronics (6 commits)")[![marcortola](https://avatars.githubusercontent.com/u/15958009?v=4)](https://github.com/marcortola "marcortola (3 commits)")[![xterr](https://avatars.githubusercontent.com/u/619509?v=4)](https://github.com/xterr "xterr (3 commits)")[![anorgan](https://avatars.githubusercontent.com/u/1270389?v=4)](https://github.com/anorgan "anorgan (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)")[![alies-dev](https://avatars.githubusercontent.com/u/5278175?v=4)](https://github.com/alies-dev "alies-dev (1 commits)")[![ping-localhost](https://avatars.githubusercontent.com/u/37925797?v=4)](https://github.com/ping-localhost "ping-localhost (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)")[![ugurerkan](https://avatars.githubusercontent.com/u/473959?v=4)](https://github.com/ugurerkan "ugurerkan (1 commits)")[![luxifer](https://avatars.githubusercontent.com/u/419078?v=4)](https://github.com/luxifer "luxifer (1 commits)")[![chekalsky](https://avatars.githubusercontent.com/u/241584?v=4)](https://github.com/chekalsky "chekalsky (1 commits)")[![Chris8934](https://avatars.githubusercontent.com/u/44963939?v=4)](https://github.com/Chris8934 "Chris8934 (1 commits)")[![dragosprotung](https://avatars.githubusercontent.com/u/1081073?v=4)](https://github.com/dragosprotung "dragosprotung (1 commits)")[![ekyna](https://avatars.githubusercontent.com/u/3483641?v=4)](https://github.com/ekyna "ekyna (1 commits)")

---

Tags

symfonybundlemoneycurrencyconversionRateexchange

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[florianv/swap-bundle

Integrates the Swap library with Symfony

62416.1k1](/packages/florianv-swap-bundle)[florianv/swap

Exchange rates library for PHP

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

Currency exchange rates library for Laravel and Lumen

3342.0M2](/packages/florianv-laravel-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)

PHPackages © 2026

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