fomvasss/laravel-currency

1.3.0 2020-03-02 21:09 UTC

This package is auto-updated.

Last update: 2024-04-29 04:19:54 UTC


README

License Build Status Latest Stable Version Total Downloads Quality Score

Usage and manage currency in your Laravel application

Installation

Run from the command line:

composer require fomvasss/laravel-currency

Publishing

php artisan vendor:publish --provider="Fomvasss\Currency\ServiceProvider"

Usage

Usage facade \Fomvasss\Currency\Facades\Currency

Currency::getActiveCurrencies();
Currency::issetCurrency('USD');
Currency::getCurrency('RUB');
Currency::format(120, 'RUB');
Currency::convert(10.00, 'USD', 'UAH', false);
Currency::format(123, 'RUB');

Links