PHPackages                             brunoinds/frankfurter-laravel - 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. brunoinds/frankfurter-laravel

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

brunoinds/frankfurter-laravel
=============================

v1.1.0(2y ago)31.3k↑16.7%MITPHP

Since Mar 21Pushed 2y ago1 watchersCompare

[ Source](https://github.com/brunoinds/frankfurter-laravel)[ Packagist](https://packagist.org/packages/brunoinds/frankfurter-laravel)[ RSS](/packages/brunoinds-frankfurter-laravel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

PHP Frankfurter Currency Exchange
=================================

[](#php-frankfurter-currency-exchange)

A simple PHP library for exchanging currencies based on api.frankfurter.app

[![Total Downloads](https://camo.githubusercontent.com/c8813c9c6dd2198ce50bb9cf563d8f17dc8a9fe0862220a47a0df37ed0e16a93/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6272756e6f696e64732f6672616e6b6675727465722d6c61726176656c)](https://packagist.org/packages/brunoinds/frankfurter-laravel)[![Latest Stable Version](https://camo.githubusercontent.com/7dcbc2c65ea681d5353309e489472d64968ee85230b1310c095875ea34489389/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6272756e6f696e64732f6672616e6b6675727465722d6c61726176656c)](https://packagist.org/packages/brunoinds/frankfurter-laravel)[![License](https://camo.githubusercontent.com/b1e25fb1a1aa2452a83e8abd18978b5a8b478a40f6655385a5a00c6d205cf96b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6272756e6f696e64732f6672616e6b6675727465722d6c61726176656c)](https://packagist.org/packages/brunoinds/frankfurter-laravel)

Installation
------------

[](#installation)

Install via Composer:

```
composer require brunoinds/frankfurter-laravel
```

Usage
-----

[](#usage)

The `Exchange` class provides methods for exchanging between BRL and USD:

```
use Brunoinds\FrankfurterLaravel\Exchange;
use Brunoinds\FrankfurterLaravel\Enums\Currency;

// Get current exchange rate
$result = Exchange::now()->convert(Currency::USD, 1)->to(Currency::BRL);

// Get historical exchange rate
$date = new DateTime('2023-12-10');
$result = Exchange::on($date)
                ->convert(Currency::USD, 1)
                ->to(Currency::BRL);
echo $result // 0.27
```

The `Currency` enum provides constants for the supported currencies:

```
use Brunoinds\FrankfurterLaravel\Enums\Currency;

Currency::USD;
Currency::BRL;
Currency::EUR;
Currency::AUD;
Currency::BGN;
Currency::CAD;
Currency::CHF;
Currency::CNY;
Currency::CZK;
Currency::DKK;
Currency::GBP;
Currency::HKD;
Currency::HUF;
Currency::IDR;
Currency::ILS;
Currency::INR;
Currency::ISK;
Currency::JPY;
Currency::KRW;
Currency::MXN;
Currency::MYR;
Currency::NOK;
Currency::NZD;
Currency::PHP;
Currency::PLN;
Currency::RON;
Currency::SEK;
Currency::SGD;
Currency::THB;
Currency::TRY;
Currency::ZAR;
```

Testing
-------

[](#testing)

Unit tests are located in the `tests` directory. Run tests with:

```
composer test

```

Contributing
------------

[](#contributing)

Pull requests welcome!

License
-------

[](#license)

MIT License

Powered by:
-----------

[](#powered-by)

- [API Frankfurter.app](https://www.frankfurter.app/docs/)

Let me know if you would like any sections expanded or have any other feedback!

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~13 days

Total

2

Last Release

770d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/54acc3d3fd4f73272aaec761ab85bf40397736e250431ec7c1cb34de791e9f18?d=identicon)[brunoinds](/maintainers/brunoinds)

---

Top Contributors

[![brunoinds](https://avatars.githubusercontent.com/u/49789611?v=4)](https://github.com/brunoinds "brunoinds (3 commits)")

### Embed Badge

![Health badge](/badges/brunoinds-frankfurter-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/brunoinds-frankfurter-laravel/health.svg)](https://phpackages.com/packages/brunoinds-frankfurter-laravel)
```

PHPackages © 2026

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