PHPackages                             brightcreations/money-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. brightcreations/money-converter

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

brightcreations/money-converter
===============================

A Laravel package for converting currencies using exchange rates.

0.5.2(4d ago)08.4k↓30.2%MITPHPPHP &gt;=8.1

Since May 22Pushed 4d agoCompare

[ Source](https://github.com/BrightCreations/money-converter)[ Packagist](https://packagist.org/packages/brightcreations/money-converter)[ RSS](/packages/brightcreations-money-converter/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (1)Dependencies (13)Versions (25)Used By (0)

Money Converter Package
-----------------------

[](#money-converter-package)

A PHP package for converting money between different currencies.

[![Downloads](https://camo.githubusercontent.com/984e83cb0c54ed3f1fe4938aeb6328576f4f35bf439f379fe6feddd3b98f9bb7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f646f776e6c6f6164732f4272696768744372656174696f6e732f6d6f6e65792d636f6e7665727465722f746f74616c)](https://camo.githubusercontent.com/984e83cb0c54ed3f1fe4938aeb6328576f4f35bf439f379fe6feddd3b98f9bb7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f646f776e6c6f6164732f4272696768744372656174696f6e732f6d6f6e65792d636f6e7665727465722f746f74616c)[![License](https://camo.githubusercontent.com/655aea45fb1741b4dc2a953b71d4d8a0f6fefe19415cf2a194eeb20562547ab7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f4272696768744372656174696f6e732f6d6f6e65792d636f6e766572746572)](https://camo.githubusercontent.com/655aea45fb1741b4dc2a953b71d4d8a0f6fefe19415cf2a194eeb20562547ab7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f4272696768744372656174696f6e732f6d6f6e65792d636f6e766572746572)[![Last Commit](https://camo.githubusercontent.com/f0e325aa5c35213199040fe4a387e4de8098735b423d28bb5e4d44c421fc0791/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f4272696768744372656174696f6e732f6d6f6e65792d636f6e766572746572)](https://camo.githubusercontent.com/f0e325aa5c35213199040fe4a387e4de8098735b423d28bb5e4d44c421fc0791/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f4272696768744372656174696f6e732f6d6f6e65792d636f6e766572746572)[![Stars](https://camo.githubusercontent.com/f275bc7ab0d366c408a95f1c877298c4b0d32905d0d894a41adb22cf09661dfa/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f4272696768744372656174696f6e732f6d6f6e65792d636f6e7665727465723f7374796c653d736f6369616c)](https://camo.githubusercontent.com/f275bc7ab0d366c408a95f1c877298c4b0d32905d0d894a41adb22cf09661dfa/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f4272696768744372656174696f6e732f6d6f6e65792d636f6e7665727465723f7374796c653d736f6369616c)

Overview
--------

[](#overview)

This package provides a simple and efficient way to convert money between different currencies. It uses a unified interface to fetch exchange rates and perform conversions, making it easy to integrate with various exchange rate services.

Features
--------

[](#features)

- Converts money between different currencies
- Uses a unified interface to fetch exchange rates and perform conversions
- Supports multiple exchange rate services
- Throws exceptions for invalid conversions or missing exchange rates
- Easy to integrate with various frameworks and applications

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

[](#installation)

To install the Exchange Rates Service package, run the following command in your terminal:

```
composer require brightcreations/money-converter
```

Configuration
-------------

[](#configuration)

To configure the package, publish the configuration file using the following command:

```
php artisan vendor:publish --provider="BrightCreations\MoneyConverter\MoneyConverterServiceProvider"
```

Then, update the `money-converter.php` configuration file to suit your needs.

Usage
-----

[](#usage)

To retrieve exchange rates, use the `MoneyConverterInterface`:

```
use BrightCreations\MoneyConverter\Contracts\MoneyConverterInterface;

// Converts 100.00 USD to EUR using the current exchange rate
$convertedMinorInt = $service->convert(10000, 'USD', 'EUR');

// Converts 100.00 USD to EUR using the exchange rate of a previous date
$convertedMinorInt = $service->convert(10000, 'USD', 'EUR', now()->subDays(1));
```

> **Important Note:**Before using the package, make sure that the tables of the exchange rates are in your database and the names of the tables and columns are reflected in the config as it is.

You can inject the service into a constructor or resolve it using the `resolve` or `app->make` method. Here are examples of each approach:

### Constructor Injection

[](#constructor-injection)

```
use BrightCreations\MoneyConverter\Contracts\MoneyConverterInterface;

class SomeClass {
    private $service;

    public function __construct(MoneyConverterInterface $service) {
        $this->service = $service;
    }

    public function someMethod() {
        $convertedMinorInt = $this->service->convert(10000, 'USD', 'EUR');
    }
}
```

### Using `resolve` Method

[](#using-resolve-method)

```
use BrightCreations\MoneyConverter\Contracts\MoneyConverterInterface;

$service = resolve(MoneyConverterInterface::class);
$convertedMinorInt = $service->convert(10000, 'USD', 'EUR');
```

### Using `app->make` Method

[](#using-app-make-method)

```
use BrightCreations\MoneyConverter\Contracts\MoneyConverterInterface;

$service = app()->make(MoneyConverterInterface::class);
$convertedMinorInt = $service->convert(10000, 'USD', 'EUR');
```

API Documentation
-----------------

[](#api-documentation)

Coming soon...

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

[](#contributing)

Contributions are welcome! Please submit a pull request or open an issue to report any bugs or suggest new features.

License
-------

[](#license)

This package is licensed under the MIT License.

Author
------

[](#author)

Kareem Mohamed - Bright Creations Email:

Version
-------

[](#version)

0.1.2

###  Health Score

47

—

FairBetter than 93% of packages

Maintenance99

Actively maintained with recent releases

Popularity24

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 63% 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 ~17 days

Recently: every ~34 days

Total

24

Last Release

4d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b3ecbef0a371010403e945b0daa79fffba250d0753dbbadabc01d7b54b04cb5e?d=identicon)[kareemshaaban-bc](/maintainers/kareemshaaban-bc)

---

Top Contributors

[![kareemshaaban221](https://avatars.githubusercontent.com/u/53887143?v=4)](https://github.com/kareemshaaban221 "kareemshaaban221 (34 commits)")[![kareemshaaban-bc](https://avatars.githubusercontent.com/u/212358009?v=4)](https://github.com/kareemshaaban-bc "kareemshaaban-bc (20 commits)")

---

Tags

laravelexchange ratescurrency conversion

### Embed Badge

![Health badge](/badges/brightcreations-money-converter/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.5k55.4M8.4k](/packages/larastan-larastan)[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.6k29.9M146](/packages/laravel-cashier)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k15.1M132](/packages/laravel-pulse)[mike-bronner/laravel-model-caching

Automatic caching for Eloquent models.

2.4k91.0k1](/packages/mike-bronner-laravel-model-caching)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M194](/packages/laravel-ai)

PHPackages © 2026

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