Download the PHP package jimmerioles/bitcoin-currency-converter-php without Composer
On this page you can find all versions of the php package jimmerioles/bitcoin-currency-converter-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jimmerioles/bitcoin-currency-converter-php
More information about jimmerioles/bitcoin-currency-converter-php
Files in jimmerioles/bitcoin-currency-converter-php
Package bitcoin-currency-converter-php
Short Description A simple and lightweight bitcoin to currency converter and vice versa based on current exchange rates from your chosen provider: Coinbase, Coindesk, Bitpay and etc.
License MIT
Informations about the package bitcoin-currency-converter-php
Bitcoin Currency Converter
This library helps developers that need to easily convert bitcoin to fiat currency(ISO 4217) or to another cryptocurrency and vice versa from your exchange rates provider of choice.
Available exchange rates providers are:
If you have any request for other exchange rates provider or other features that you would like for me to add see Contributing.
Features
It is simple, lightweight, extensible, framework agnostic and fast.
- You can convert Bitcoin to any currency (ISO 4217 fiat or another cryptocurrency)
- You can convert any currency (ISO 4217 fiat or another cryptocurrency) to Bitcoin
- It supports different exchange rates providers: Coinbase, Coindesk, Bitpay
- It has baked-in caching (PSR16 compliant, swappable with your own or your framework's)
Install
Lets begin by installing the library by Composer:
Usage
You can then convert Bitcoin to any currency (ISO 4217 fiat or crypto) by:
or you can use the helper function for convenience:
You can also convert any currency (ISO 4217 fiat or crypto) to Bitcoin:
and it also has its helper function for convenience:
You can use different exchange rates from providers:
or if you prefer to use the helper functions:
You can specify cache expire time (ttl) on provider by:
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
Show full specs and features:
Contributing
Open for suggestions and requests. Please request through issue or pull requests.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
Want to show some :heart:?
Let's find Satoshi Nakamoto! | or let's have a :coffee: |
---|---|
All versions of bitcoin-currency-converter-php with dependencies
guzzlehttp/guzzle Version ^6.3
illuminate/cache Version ^5.5
illuminate/filesystem Version ^5.5
composer/composer Version ^1.5