Skip to content

blueskan/Laravel-5-Currency-Converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Small Api for currency converting jobs in Laravel 5

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages