Over the past few months, I’ve gained quite an interest in the crypto-currency Bitcoin.
Bitcoin is a new currency which has no physical form, but can be considered Internet cash. If you want more information on Bitcoin in general, take a look at the We Use Coins website, which has a great introductory video and articles/links to other useful Bitcoin resources.
Bitcoin Helper 0.1 Released
As part of my interest in Bitcoin, I’ve decided to start a mini-project in the form of Bitcoin Helper, a PHP class which will contain multiple methods to aid web site/application developers in integrating Bitcoin related functionality into their systems. The first function, which comes in Bitcoin Helper 0.1, is a really easy to use converter that can convert non Bitcoin currencies into the equivalent Bitcoin value and return the result.
To see how simple it is to use, see the following code snippet.
include "bitcoin_helper.php";
$bh = new bitcoin_helper;
echo $bh->convert_to_btc("GBP", 10);
This will convert £10 (Great British Pounds) into Bitcoin and echo out the result. The following works for USD and Euros as well.
echo $bh->convert_to_btc("USD", 10);
echo $bh->convert_to_btc("EUR", 10);
The trade data for several other currencies is provided from the external source (see the Bitcoin Charts website). If your currency is listed there, entering its ISO 4217 currency code as the first parameter of the convert_to_btc function should allow you to convert any value of that currency into Bitcoin.
Please note that this is the first release of Bitcoin Helper, so I can not guarantee it is bug free. More checks, validation, improvements and new features will be added in the future versions. Feel free to leave a comment with any suggestions.
I hope this very basic Bitcoin Helper release can assist web developers with some simple Bitcoin conversion in their sites.
Download Bitcoin Helper 0.1
To download this first version of Bitcoin Helper (0.1), please visit the Bitcoin Helper project page.





