Smartcoin library for PHP