Download the PHP package burtds/cash-converter without Composer
On this page you can find all versions of the php package burtds/cash-converter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download burtds/cash-converter
More information about burtds/cash-converter
Files in burtds/cash-converter
Package cash-converter
Short Description A simple cash converter package for Laravel.
License MIT
Informations about the package cash-converter
About cash-converter
A small and simple package that takes away the pain of communicating with ExchangeRate-API directly to convert a certain amount of money between 2 currencies. You can also get the conversion rate or an array with all known conversion rates based on a certain currency.
How to use cash-converter
Installation
Install the package via composer:
Afterwards, publish the service provider.
Usage
First of all add the API key of the ExchangeRate-API service to your .env
file of your project.
If you don't have an ExchangeRate-API account yet, create one at exchangerate-api.com.
Once you have an account you can copy your API key from the dashboard page and put it into your .env
file.
To use it, import the Facade of this package at the top of your file.
Once that is done, you can use the conversion functions.
Test & Format
To execute the tests, run:
To format the code using pint, run:
Security Vulnerabilities
If you discover a security vulnerability within this package, please send me an email via [email protected]. I'll get back to you as soon as possible.
Credits
- Bert De Swaef
- All Contributors
And a huge thanks to Freek Van der Herten for the guidance.
License
This package is open-sourced software licensed under the MIT license.
All versions of cash-converter with dependencies
guzzlehttp/guzzle Version ^7.2
spatie/laravel-package-tools Version ^1.16