filippofinke/currency-to-btc

Currency exchange in BTC

dev-master 2019-09-28 19:31 UTC

This package is auto-updated.

Last update: 2024-04-29 04:33:18 UTC


README

A simple wrapper for the blockchain API currency exchange rate.

Install:

composer require filippofinke/currency-to-btc

Usage:

<?php
use CurrencyToBtc\CurrencyToBtc as CurrencyToBtc;
require __DIR__ . '/vendor/autoload.php';

echo CurrencyToBtc::convert('CHF', 100);
// Example result: 0.01243236