opqclick / currency-converter
The task is to create a Laravel package, this packagewill expose an API GET endpoint that will receive thefollowing params:● amount● currency to exchangeYou can assume the default currency is Euro.This endpoint should return the exchange rate for thegiven amount in the same standard format as theoth
1.0.1
2022-09-27 17:52 UTC
Requires
- guzzlehttp/guzzle: 7.5.x-dev
README
composer require opqclick/currency-converter
By default, Composer pulls in packages from Packagist. So you’ll have to make a slight adjustment to your new project composer.json file. Open the file and update include the following array somewhere in the object:
"repositories": [
{
"type": "vcs",
"url": "https://github.com/fhsinchy/inspire"
}
]
Add the service provider in {config/app.php} providers array
Opqclick\CurrencyConverter\Providers\CurrencyConverterServiceProvider::class
endpoints
The package containing 1 endpoints
- {base_url}/{amount}{required}/{currency}{required}