PHPackages                             rikless/laravel-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. rikless/laravel-currency

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

rikless/laravel-currency
========================

Currency component for Laravel 5+

v1.4.5(4y ago)010.9k↓50%MITPHPPHP &gt;=7.4|^8.0

Since Dec 13Pushed 4y ago1 watchersCompare

[ Source](https://github.com/rikless/laravel-currency)[ Packagist](https://packagist.org/packages/rikless/laravel-currency)[ RSS](/packages/rikless-laravel-currency/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (16)Used By (0)

Currency component for Laravel 5+
=================================

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

[![Build Status](https://camo.githubusercontent.com/2154bcff10c295f557496d04af6e0cf499bb0e22827dce5d5d08c2db4a39fdcb/68747470733a2f2f7472617669732d63692e6f72672f73656261737469616e73756c696e736b692f6c61726176656c2d63757272656e63792e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/sebastiansulinski/laravel-currency)

Versions
--------

[](#versions)

As of version `v1.3.0`, package requires PHP 7.1. For earlier versions of PHP, please use `v1.2.0`

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

[](#installation)

Install the package using composer

```
composer require sebastiansulinski/laravel-currency

```

### Service Provider and Facade

[](#service-provider-and-facade)

To use the package with the IOC Container, add its `SSD\Currency\CurrencyServiceProvider` to the list of providers inside of the `config/app.php` under the `providers`:

```
'providers' => [
    ...

    SSD\Currency\CurrencyServiceProvider::class

]
```

To use it as a Facade, add it under the `aliases`:

```
'aliases' => [
    ...

    'Currency'  => SSD\Currency\CurrencyFacade::class
]
```

now run:

```
php artisan vendor:publish
```

This will add a new file `config/currency.php` with the following structure:

```
