PHPackages                             redcode/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. redcode/currency-rate-bundle

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

redcode/currency-rate-bundle
============================

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

0.3.0(4y ago)3118.1k[2 PRs](https://github.com/redco/redcode-currency-rate-bundle/pulls)MITPHP ^7.4

Since May 21Compare

[ Source](https://github.com/redco/redcode-currency-rate-bundle)[ Packagist](https://packagist.org/packages/redcode/currency-rate-bundle)[ Docs](https://github.com/maZahaca/redcode-currency-rate-bundle)[ RSS](/packages/redcode-currency-rate-bundle/feed)WikiDiscussions Synced yesterday

READMEChangelog (2)Dependencies (5)Versions (9)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

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 69.4% 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 ~468 days

Recently: every ~610 days

Total

8

Last Release

1513d ago

PHP version history (3 changes)0.1.0-alphaPHP &gt;=5.4.4

0.2.0PHP &gt;=5.4.0

0.3.0PHP ^7.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1290067?v=4)[Andrew Red](/maintainers/maZahaca)[@maZahaca](https://github.com/maZahaca)

---

Top Contributors

[![maZahaca](https://avatars.githubusercontent.com/u/1290067?v=4)](https://github.com/maZahaca "maZahaca (34 commits)")[![remedge](https://avatars.githubusercontent.com/u/285520?v=4)](https://github.com/remedge "remedge (12 commits)")[![matthew-gill](https://avatars.githubusercontent.com/u/31350541?v=4)](https://github.com/matthew-gill "matthew-gill (2 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

### Embed Badge

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

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

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M379](/packages/easycorp-easyadmin-bundle)[sulu/sulu

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

1.3k1.4M196](/packages/sulu-sulu)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1615.6k12](/packages/2lenet-crudit-bundle)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1175.2k](/packages/rcsofttech-audit-trail-bundle)

PHPackages © 2026

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