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.

v0.5.0(3mo ago)05.9k↓27.5%MITPHPPHP &gt;=8.1

Since May 22Pushed 3mo 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 1mo ago

READMEChangelog (1)Dependencies (6)Versions (23)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

42

—

FairBetter than 90% of packages

Maintenance82

Actively maintained with recent releases

Popularity23

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 58.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 ~13 days

Recently: every ~0 days

Total

22

Last Release

95d 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 (28 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

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[yajra/laravel-datatables-oracle

jQuery DataTables API for Laravel

4.9k33.8M339](/packages/yajra-laravel-datatables-oracle)[spatie/laravel-enum

Laravel Enum support

3655.4M31](/packages/spatie-laravel-enum)[yajra/laravel-datatables-editor

Laravel DataTables Editor plugin for Laravel 5.5+.

1186.1M2](/packages/yajra-laravel-datatables-editor)[aedart/athenaeum

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

245.2k](/packages/aedart-athenaeum)[laragear/preload

Effortlessly make a Preload script for your Laravel application.

119363.5k](/packages/laragear-preload)

PHPackages © 2026

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