seymur / currency
Currency api of Central Bank Of Azerbaijan
dev-master
2017-08-29 23:25 UTC
Requires
- php: >=5.5.0
This package is auto-updated.
Last update: 2024-10-29 03:02:51 UTC
README
About Project
Laravel api for getting Currency rates of Central Bank of Azerbaijan You can get all currency information or search by Currency Code and get One
##Requirements
Installation
You can clone project with git:
composer require seymur/currency:dev-master
Now add the service provider in config/app.php file:
'providers' => [
// ...
Seymur\Currency\CurrencyServiceProvider::class,
],
after this add alias in config/app.php file:
'aliases' => [
//...
'Currency' => Seymur\Currency\Facades\Currency::class,
],
use command:
composer dump-autoload
now u can use api like this
use Seymur\Currency\Facades\Currency;
//...
Currency::get();
or you can use
\Seymur\Currency\Facades\Currency::get()
for searching currency rate use currency code example:
Currency::search("USD");