PHPackages                             burtds/cash-converter - 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. burtds/cash-converter

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

burtds/cash-converter
=====================

A simple cash converter package for Laravel.

v1.0.7(1mo ago)161476MITPHPPHP &gt;=8.1CI passing

Since Oct 22Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/BurtDS/cash-converter)[ Packagist](https://packagist.org/packages/burtds/cash-converter)[ GitHub Sponsors](https://github.com/BurtDS)[ Patreon](https://www.patreon.com/codewithburt)[ RSS](/packages/burtds-cash-converter/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (8)Dependencies (12)Versions (9)Used By (0)

[![Latest Version on Packagist](https://camo.githubusercontent.com/52aec021de99eb43a6a352671608951d5f963e8d369f3224300f2df7839f1674/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6275727464732f636173682d636f6e7665727465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/burtds/cash-converter)[![GitHub Workflow Status](https://camo.githubusercontent.com/d9f7c863f6c6c2e93673f4775675414cbba2a5d3e36d01bfa1198c133138a128/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6275727464732f636173682d636f6e7665727465722f72756e2d74657374732d706573742e796d6c3f6272616e63683d6d61696e266c6162656c3d5465737473)](https://github.com/burtds/cash-converter/actions/workflows/run-tests-pest.yml)[![Total Downloads](https://camo.githubusercontent.com/47bab429df4384be724964bb64b0df65e851bb264475c1848a1ef7f9d5e6d0f5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6275727464732f636173682d636f6e7665727465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/burtds/cash-converter)

About cash-converter
--------------------

[](#about-cash-converter)

A small and simple package that takes away the pain of communicating with ExchangeRate-API directly to convert a certain amount of money between 2 currencies. You can also get the conversion rate or an array with all known conversion rates based on a certain currency.

How to use cash-converter
-------------------------

[](#how-to-use-cash-converter)

### Installation

[](#installation)

Install the package via composer:

```
composer require burtds/cash-converter
```

Afterwards, publish the service provider.

```
php artisan vendor:publish --provider="Burtds\CashConverter\CashConverterProvider"
```

### Usage

[](#usage)

First of all add the API key of the ExchangeRate-API service to your `.env` file of your project. If you don't have an ExchangeRate-API account yet, create one at [exchangerate-api.com](https://exchangerate-api.com). Once you have an account you can copy your API key from the dashboard page and put it into your `.env` file.

```
EXCHANGE_RATE_API_KEY="YOUR-API-KEY"

```

To use it, import the Facade of this package at the top of your file.

```
use Burtds\CashConverter\Facades\CashConverter;
```

Once that is done, you can use the conversion functions.

```
CashConverter::getRates('EUR'); // returns an array of the currenct conversion rates based on the given currency, in this case Euro
CashConverter::getRate('EUR','USD'); // returns the current conversion rate for Euro to US Dollars
CashConverter::convert('EUR','USD', 25); // returns the converted vanlue in US Dollars for the given 25 Euro
```

### Test &amp; Format

[](#test--format)

To execute the tests, run:

```
composer test
```

To format the code using pint, run:

```
composer format
```

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

If you discover a security vulnerability within this package, please send me an email via . I'll get back to you as soon as possible.

Credits
-------

[](#credits)

- [Bert De Swaef](https://github.com/burtds)
- [All Contributors](../../contributors)

And a huge thanks to [Freek Van der Herten](https://github.com/freekmurze) for the guidance.

License
-------

[](#license)

This package is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

49

—

FairBetter than 95% of packages

Maintenance90

Actively maintained with recent releases

Popularity24

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 72.8% 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 ~126 days

Recently: every ~220 days

Total

8

Last Release

47d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b382815f082806930c8b1721878451dcd7642789a3fdf4a8f20d1db21923c488?d=identicon)[BurtDS](/maintainers/BurtDS)

---

Top Contributors

[![BurtDS](https://avatars.githubusercontent.com/u/2655353?v=4)](https://github.com/BurtDS "BurtDS (59 commits)")[![freekmurze](https://avatars.githubusercontent.com/u/483853?v=4)](https://github.com/freekmurze "freekmurze (12 commits)")[![BurtDS-Bot](https://avatars.githubusercontent.com/u/258660097?v=4)](https://github.com/BurtDS-Bot "BurtDS-Bot (8 commits)")[![bramus](https://avatars.githubusercontent.com/u/213073?v=4)](https://github.com/bramus "bramus (1 commits)")[![ElianCodes](https://avatars.githubusercontent.com/u/15145918?v=4)](https://github.com/ElianCodes "ElianCodes (1 commits)")

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/burtds-cash-converter/health.svg)

```
[![Health](https://phpackages.com/badges/burtds-cash-converter/health.svg)](https://phpackages.com/packages/burtds-cash-converter)
```

###  Alternatives

[maestroerror/laragent

Power of AI Agents in your Laravel project

630106.4k](/packages/maestroerror-laragent)[spatie/laravel-rdap

Perform RDAP queries in a Laravel app

72108.3k2](/packages/spatie-laravel-rdap)[burtds/laravel-vatnumber-checker

A simple VAT Number checker package for Laravel.

65121.5k](/packages/burtds-laravel-vatnumber-checker)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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