PHPackages                             lilessam/currencies - 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. lilessam/currencies

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

lilessam/currencies
===================

Easy Currencies Package For Laravel

1.0.4(8y ago)151MITPHPPHP &gt;=5.4.0

Since Sep 14Pushed 8y ago1 watchersCompare

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

READMEChangelog (5)Dependencies (1)Versions (6)Used By (0)

### Currencies Package For Laravel

[](#currencies-package-for-laravel)

This package provides two simple helpers to convert amounts from currency to another and to get today's rates for any currency.

##### Helpers in the package are using an external API which provides real time currency rates.

[](#helpers-in-the-package-are-using-an-external-api-which-provides-real-time-currency-rates)

### Installation

[](#installation)

via composer

```
composer require lilessam/currencies
```

Then add `Lilessam\Currencies\CurrenciesServiceProvider` to your providers array in `config/app.php`.

### Using the package

[](#using-the-package)

You can use the helper `convert_currency` which requires three parameters. First is the amount, the second is the amount current currency and the third is the currency you want to change the amount to.

```
// This will convert 10 from USD to EUR with today's price
$amount = convert_currency(10, 'USD', 'EUR');
```

You can also use `get_rates` helper to get an object of today's currencies rates. Its first parameter is required which is the base currency. The second parameter is optional and its type is array which allows you to pass what currencies you wanna get rates for.

```
// This will return an object of all USD currencies today's rates
$rates = get_rates('USD');
// This will return an object of Euro, Indian Rubles and Arab Emirates Dirham rates for USD.
$rates = get_rates('USD', ['EUR', 'INR', 'AUD']);
```

### Cache settings

[](#cache-settings)

The package now uses Laravel cache system to cache the data from the external API to reduce the API calls as much as possible. So you can use the following command to publish the package configuration file and change how many minutes you wanna keep the cached data.

```
php artisan vendor:publish --provider=Lilessam\Currencies\CurrenciesServiceProvider
```

The package caches the data for 60 minutes by default.

###### The package has been developed in almost 30 mins, So please post any issue if found or make a pull request. Thanks !

[](#the-package-has-been-developed-in-almost-30-mins-so-please-post-any-issue-if-found-or-make-a-pull-request-thanks-)

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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

5

Last Release

3124d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0bb5e48c029dd92ecbdc17d81450e98d6bcde6364f332835302c3b433a6a03e2?d=identicon)[lilessam](/maintainers/lilessam)

---

Top Contributors

[![AhmedEssamElNaggar](https://avatars.githubusercontent.com/u/8589158?v=4)](https://github.com/AhmedEssamElNaggar "AhmedEssamElNaggar (11 commits)")[![ApxSnowflake](https://avatars.githubusercontent.com/u/8589158?v=4)](https://github.com/ApxSnowflake "ApxSnowflake (11 commits)")

---

Tags

currency-rateslaraveltoday-rates

### Embed Badge

![Health badge](/badges/lilessam-currencies/health.svg)

```
[![Health](https://phpackages.com/badges/lilessam-currencies/health.svg)](https://phpackages.com/packages/lilessam-currencies)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[illuminate/pipeline

The Illuminate Pipeline package.

9348.3M267](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10533.5M991](/packages/illuminate-pagination)[illuminate/redis

The Illuminate Redis package.

8314.4M363](/packages/illuminate-redis)[illuminate/cookie

The Illuminate Cookie package.

224.5M132](/packages/illuminate-cookie)[aedart/athenaeum

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

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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