fomvasss/laravel-currency

1.3.0 2020-03-02 21:09 UTC

This package is auto-updated.

Last update: 2024-10-29 05:59:23 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