senemoglu/currency
Laravel-5-Currency-Converter
Small Api for currency converting jobs in Laravel 5
Installation
- Going your project directory on shell and run this command:
composer require senemoglu/currency:dev-master
- Add this line in your service provider's array (config/app.php) =>
Senemoglu\Currency\CurrencyServiceProvider::class,
- Add this line in your aliases =>
'Currency' => Senemoglu\Currency\Facades\Converter::class,
Usage
On Business Side:
Example
Currency::convert('USD', 'TRY', 20);
On Presentation Side:
Example
@currency(USD => TRY, 20)
I have been working about this since 3 hours. Any advice you give, im open.
Related Packages
doctrine/dbal
Powerful PHP database abstraction layer (DBAL) with many features for database s...
634,760,849
9,707
laravel/serializable-closure
Laravel Serializable Closure provides an easy and secure way to serialize closur...
408,553,772
609
nunomaduro/collision
Cli error handling for console/command-line PHP applications.
387,976,821
4,658