PHPackages                             quicktech-as/exchange-rate - 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. quicktech-as/exchange-rate

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

quicktech-as/exchange-rate
==========================

Package Laravel to currency conversion using ExchangeRate API.

1.0.0(9y ago)0351MITPHPPHP &gt;=5.4.0

Since May 5Pushed 7y agoCompare

[ Source](https://github.com/quicktech-as/exchange-rate)[ Packagist](https://packagist.org/packages/quicktech-as/exchange-rate)[ RSS](/packages/quicktech-as-exchange-rate/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (4)Versions (4)Used By (0)

Quicktech\\ExchangeRate (Laravel 5 Package)
===========================================

[](#quicktechexchangerate-laravel-5-package)

Quicktech\\ExchangeRate is a succinct and flexible way to use [ExchangeRate API](https://www.exchangerate-api.com) to convert currencies in **Laravel 5** applications.

Contents
--------

[](#contents)

- [Installation](#installation)
- [Configuration](#configuration)
- [Usage](#usage)
    - [Get rates based on default currency](#get-rates-based-on-default-currency)
    - [Convert currency value](#convert-currency-value)
- [License](#license)
- [Contribution guidelines](#contribution-guidelines)
- [Additional information](#additional-information)

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

[](#installation)

1. In order to install Laravel 5, just add the following to your composer.json. Then run `composer update`:

```
"quicktech-as/exchange-rate": "^1.0"
```

2. Open your `config/app.php` and add the following to the `providers` array:

```
Quicktech\ExchangeRate\ExchangeRateServiceProvider::class,
```

3. In the same `config/app.php` and add the following to the `aliases ` array:

```
'ExchangeRate' => Quicktech\ExchangeRate\Facade\ExchangeRate::class,
```

4. Run the command below to publish the package config file `config/exchange_rate.php`:

```
php artisan vendor:publish
```

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

[](#configuration)

Open your `.env` file and setup your ExchangeRate credentials:

```
EXCHANGERATE_DEFAULT_CURRENCY = 'your default currency'
EXCHANGERATE_API_KEY = 'your api key'
EXCHANGERATE_API_URI = 'https://v3.exchangerate-api.com'
```

Usage
-----

[](#usage)

### Get rates based on default currency

[](#get-rates-based-on-default-currency)

To get all rates based on your defult currency, you can use this resource:

```
$rates = ExchangeRate::rates();
```

The method above will return the following response:

```
[
    "AUD" => 1.32230,
    "BGN" => 1.8096,
    "BRL" => 3.11,
    "..." => 1.31135,
    "..." => 7.473, etc. etc.
]
```

### Convert currency value

[](#convert-currency-value)

To convert currency value, you can use this resource:

```
$value = ExchangeRate::convert(10.00, 'USD', 'BRL');
// 31.11
```

License
-------

[](#license)

Quicktech\\ExchangeRate is free software distributed under the terms of the MIT license.

Contribution guidelines
-----------------------

[](#contribution-guidelines)

Please report any issue you find in the issues page.
Pull requests are welcome.

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 80% 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 ~21 days

Total

3

Last Release

3302d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2615feced0d2045d004511de06a5d58d9c2e128e51d46b18824363033d5e9e3c?d=identicon)[gilberto-bueno](/maintainers/gilberto-bueno)

---

Top Contributors

[![gilbertojb](https://avatars.githubusercontent.com/u/56323604?v=4)](https://github.com/gilbertojb "gilbertojb (4 commits)")[![StefanYohansson](https://avatars.githubusercontent.com/u/1783252?v=4)](https://github.com/StefanYohansson "StefanYohansson (1 commits)")

---

Tags

currencyexchange-rateilluminatelaravellaravelcurrencyilluminateexchange rate

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/quicktech-as-exchange-rate/health.svg)

```
[![Health](https://phpackages.com/badges/quicktech-as-exchange-rate/health.svg)](https://phpackages.com/packages/quicktech-as-exchange-rate)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[torann/currency

This provides Laravel with currency functions such as currency formatting and conversion using up-to-date exchange rates.

4031.1M6](/packages/torann-currency)[venturedrake/laravel-crm

A free open source CRM built as a package for laravel projects

42010.0k](/packages/venturedrake-laravel-crm)[spatie/laravel-export

Create a static site bundle from a Laravel app

672139.5k6](/packages/spatie-laravel-export)[nativephp/mobile

NativePHP for Mobile

1.0k55.0k88](/packages/nativephp-mobile)

PHPackages © 2026

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