PHPackages                             koddea/currency - 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. [API Development](/categories/api)
4. /
5. koddea/currency

ActiveLibrary[API Development](/categories/api)

koddea/currency
===============

Handles TCMB currencies for Laravel 6

v1.0.0(5y ago)022MITPHPPHP &gt;=5.4.0

Since Sep 28Pushed 4y ago1 watchersCompare

[ Source](https://github.com/koddea/currency)[ Packagist](https://packagist.org/packages/koddea/currency)[ RSS](/packages/koddea-currency/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Currency for Laravel 5
======================

[](#currency-for-laravel-5)

[![Latest Stable Version](https://camo.githubusercontent.com/40b00fe043d38b51a6649dfc1337e0d1019aa6a4e8da597b4af6bd788aa2363c/68747470733a2f2f706f7365722e707567782e6f72672f636173696e656c6c692f63757272656e63792f762f737461626c652e706e67)](https://packagist.org/packages/casinelli/currency) [![Total Downloads](https://camo.githubusercontent.com/ed0f382c8a0745d3515a4b6652cff549c65f7de2273c024df49e4aeaa8abd29d/68747470733a2f2f706f7365722e707567782e6f72672f636173696e656c6c692f63757272656e63792f646f776e6c6f6164732e706e67)](https://packagist.org/packages/casinelli/currency)

Handles currency for Laravel 5.

---

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

[](#installation)

- [Currency on Packagist](https://packagist.org/packages/casinelli/currency)
- [Currency on GitHub](https://github.com/casinelli/laravel-currency)

To get the latest version of Currency simply require it in your `composer.json` file.

```
"casinelli/currency": "dev-master"

```

You'll then need to run `composer install` to download it and have the autoloader updated.

Once Currency is installed you need to register the service provider with the application. Open up `app/config/app.php` and find the `providers` key.

```
'providers' => [

    Casinelli\Currency\CurrencyServiceProvider::class,

]
```

Currency also ships with a facade which provides the static syntax for creating collections. You can register the facade in the `aliases` key of your `app/config/app.php` file.

```
'aliases' => [

    'Currency' => Casinelli\Currency\Facades\Currency::class,

]
```

Create configuration file and migration table using artisan

```
$ php artisan vendor:publish

```

Artisan Commands
----------------

[](#artisan-commands)

### Updating Exchange

[](#updating-exchange)

By default exchange rates are updated from Finance Yahoo.com.

```
php artisan currency:update

```

To update from OpenExchangeRates.org

```
php artisan currency:update --openexchangerates

```

> Note: An API key is needed to use [OpenExchangeRates.org](http://OpenExchangeRates.org). Add yours to the config file.

### Cleanup

[](#cleanup)

Used to clean the Laravel cached exchanged rates and refresh it from the database. Note that cached exchanged rates are cleared after they are updated using one of the command above.

```
php artisan currency:cleanup

```

Rendering
---------

[](#rendering)

Using the Blade helper

```
@currency(12.00, 'USD')
```

- The first parameter is the amount.
- *optional* The second parameter is the ISO 4217 currency code. If not set it will use the default set in the config file.

```
echo Currency::format(12.00, 'USD');
```

For easy output of rounded values:

```
echo Currency::rounded(12.80);  // Will output $12

// All the parameters
echo Currency::rounded(12.80, 0, 'USD');
```

Change Log
----------

[](#change-log)

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

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

Unknown

Total

1

Last Release

2103d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/104231425?v=4)[emrahar](/maintainers/emrahar)[@emrahar](https://github.com/emrahar)

---

Top Contributors

[![emrah-ar](https://avatars.githubusercontent.com/u/4882771?v=4)](https://github.com/emrah-ar "emrah-ar (2 commits)")

---

Tags

laravelmoneycurrencyexchange ratelaravel6tcmb

### Embed Badge

![Health badge](/badges/koddea-currency/health.svg)

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

###  Alternatives

[laravel/pulse

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

1.7k15.1M132](/packages/laravel-pulse)[psalm/plugin-laravel

Psalm plugin for Laravel

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

Framework for Roots WordPress projects built with Laravel components.

9762.4M131](/packages/roots-acorn)[moonshine/moonshine

Laravel administration panel

1.3k253.1k81](/packages/moonshine-moonshine)[propaganistas/laravel-disposable-email

Disposable email validator

6023.0M7](/packages/propaganistas-laravel-disposable-email)[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)

PHPackages © 2026

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