PHPackages                             savritsky/currency-rate-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. savritsky/currency-rate-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

savritsky/currency-rate-bundle
==============================

Symfony5+ currency rate bundle, allows convert currencies and load rates via cbr or ecb provider

0.4(3y ago)015MITPHPPHP &gt;=8.1

Since Jan 12Pushed 3y ago1 watchersCompare

[ Source](https://github.com/vsavritsky/redcode-currency-rate-bundle)[ Packagist](https://packagist.org/packages/savritsky/currency-rate-bundle)[ Docs](https://github.com/maZahaca/redcode-currency-rate-bundle)[ RSS](/packages/savritsky-currency-rate-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (9)Versions (3)Used By (0)

Symfony2 bundle - currency rate loader
======================================

[](#symfony2-bundle---currency-rate-loader)

Steps to start
--------------

[](#steps-to-start)

1. Install module to your app [from packagist](https://packagist.org/packages/redcode/currency-rate-bundle)
2. Add bundle into kernel

```
$bundles = array(
    ...
    new \RedCode\CurrencyRateBundle\RedCodeCurrencyRateBundle(),
    ...
);
```

3\. Create Currency and CurrencyRate classes:

```
/**
* @ORM\Entity
*/
class Currency extends \RedCode\CurrencyRateBundle\Entity\Currency
{
    /**
     * @var int
     * @ORM\Id
     * @ORM\Column(type="integer")
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    protected $id;

    /**
     * @var string
     */
    protected $code;
}
```

```
/**
 * @ORM\Entity
 */
class CurrencyRate extends \RedCode\CurrencyRateBundle\Entity\CurrencyRate
{
    /**
     * @var int
     * @ORM\Id
     * @ORM\Column(type="integer")
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    protected $id;

    /**
     * @var \DateTime
     */
    protected $date;

    /**
     * @var int
     */
    protected $nominal;

    /**
     * @var float
     */
    protected $rate;

    /**
     * @var \RedCode\Currency\ICurrency
     * @ORM\ManyToOne(targetEntity="Currency")
     * @ORM\JoinColumn(name="currency_id", referencedColumnName="id")
     */
    protected $currency;

    /**
     * @var string
     */
    protected $providerName;
}
```

4\. Add section into config.yml file:

```
redcode_currency_rate:
    currency_rate_class: NameSpasePath\CurrencyRate
    currency_class: NameSpasePath\Currency
```

5\. Just run the commands:

a. To create base currencies:

```
./app/console redcode:create:base:currencies
```

b. To create load currency rates:

```
./app/console redcode:currency:rate:load
```

6\. And now, you can call currency rate converter by name - redcode.currency.rate.converter

```
$converter = $container->get('redcode.currency.rate.converter');
$convertedValue = $converter->convert('USD', 'EUR', $value);
```

Contribute
----------

[](#contribute)

Pull requests are welcome. Please see our [CONTRIBUTING](https://github.com/redco/redcode-currency-rate-bundle/blob/master/CONTRIBUTING.md) guide.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 62.3% 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 ~10 days

Total

2

Last Release

1209d ago

PHP version history (2 changes)0.4PHP &gt;=8.1

0.0.3PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/1872ace6ad18c747f549b07e197ac0405e2c92ba56449fbeebead453ed4fd69f?d=identicon)[savritsky](/maintainers/savritsky)

---

Top Contributors

[![maZahaca](https://avatars.githubusercontent.com/u/1290067?v=4)](https://github.com/maZahaca "maZahaca (33 commits)")[![remedge](https://avatars.githubusercontent.com/u/285520?v=4)](https://github.com/remedge "remedge (12 commits)")[![savritsky](https://avatars.githubusercontent.com/u/5127886?v=4)](https://github.com/savritsky "savritsky (4 commits)")[![WaylandAce](https://avatars.githubusercontent.com/u/1263005?v=4)](https://github.com/WaylandAce "WaylandAce (3 commits)")[![remedge-4xxi](https://avatars.githubusercontent.com/u/7747342?v=4)](https://github.com/remedge-4xxi "remedge-4xxi (1 commits)")

---

Tags

symfonybundlecurrencyloaderconverterRatecbr.ruwww.ecb.europa.eu

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/savritsky-currency-rate-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/savritsky-currency-rate-bundle/health.svg)](https://phpackages.com/packages/savritsky-currency-rate-bundle)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[pentatrion/vite-bundle

Vite integration for your Symfony app

2725.3M13](/packages/pentatrion-vite-bundle)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[netgen/layouts-core

Netgen Layouts enables you to build and manage complex web pages in a simpler way and with less coding. This is the core of Netgen Layouts, its heart and soul.

3689.4k10](/packages/netgen-layouts-core)

PHPackages © 2026

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