senemoglu/currency

Installs: 1 149

Dependents: 0

Suggesters: 0

Security: 0

Stars: 9

Watchers: 3

Forks: 1

Open Issues: 0

pkg:composer/senemoglu/currency

dev-master 2016-07-11 12:44 UTC

This package is not auto-updated.

Last update: 2025-10-01 13:38:09 UTC


README

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.