Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bencoderus/bureau-de-change
A lightweight currency converter with over 40 currencies supports (including cryptocurrencies).
https://github.com/bencoderus/bureau-de-change
codeigniter cryptocurrency fiat-money laravel money php symfony
Last synced: 10 days ago
JSON representation
A lightweight currency converter with over 40 currencies supports (including cryptocurrencies).
- Host: GitHub
- URL: https://github.com/bencoderus/bureau-de-change
- Owner: bencoderus
- License: mit
- Created: 2020-12-05T10:47:36.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-01-06T10:25:19.000Z (almost 4 years ago)
- Last Synced: 2024-10-12T07:23:22.540Z (about 1 month ago)
- Topics: codeigniter, cryptocurrency, fiat-money, laravel, money, php, symfony
- Language: PHP
- Homepage:
- Size: 31.3 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Bureau De Change
[![Build Status](https://travis-ci.org/bencoderus/bureau-de-change.svg?branch=master)](https://travis-ci.org/bencoderus/bureau-de-change)
[![Latest Stable Version](https://poser.pugx.org/bencoderus/bureau-de-change/v)](//packagist.org/packages/bencoderus/bureau-de-change)
[![License](https://poser.pugx.org/bencoderus/bureau-de-change/license)](//packagist.org/packages/bencoderus/bureau-de-change)A lightweight PHP library for currency conversion with over 40 currencies supports (including cryptocurrencies).
## Installation
Requires PHP >= 7.0 and [composer](https://getcomposer.org/) to install package.
```bash
composer require bencoderus/bureau-de-change
```## Usage
Convert 1 BTC to USD
```php
use Bencoderus\BureauDeChange\Converter;
$convert = new Converter();
return $convert->currency('BTC', 'USD')->convert(1);
```
Convert 100 GBP to USD
```php
use Bencoderus\BureauDeChange\Converter;return (new Converter())->currency('GBP', 'USD')->convert(100);
```## Supported Currencies
CAD, HKD, ISK, PHP, DKK, HUF, CZK, GBP, RON, SEK, IDR, INR, BRL, RUB, HRK, JPY, THB, CHF, EUR, MYR, BGN, TRY, CNY, NOK, NZD, ZAR, USD, MXN, SGD, AUD, ILS, KRW, PLN, BTC, ETH, LTC, BCH, BNB, EOS, XRP, BNB, XLM, DOT, LINK, YFI## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.
## Author
[Benjamin Iduwe](https://biduwe.com/)## License
[MIT](https://choosealicense.com/licenses/mit/)