Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/phramz/php-bitcoin-api
https://github.com/phramz/php-bitcoin-api
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/phramz/php-bitcoin-api
- Owner: phramz
- License: mit
- Created: 2013-06-18T19:15:45.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-07-11T20:07:54.000Z (over 11 years ago)
- Last Synced: 2024-04-02T15:22:03.289Z (8 months ago)
- Language: PHP
- Size: 280 KB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# phramz/php-bitcoin-api [![Build Status](https://travis-ci.org/phramz/php-bitcoin-api.png?branch=master)](https://travis-ci.org/phramz/php-bitcoin-api)
This is (or will be) a full-blown implementation of the bitcoind JSON-RPC API written in PHP.
Please be aware that this is still early alpha! Not all features are implemented yet and the interfaces are not stable.
Anyways ... the basic features should already work as expected ;-)Install
------It's easy if you use composer!
edit your `composer.json`
``` json
"require": {
"phramz/php-bitcoin-api": "dev-master"
}
```or via command line
```
php composer.phar require phramz/php-bitcoin-api
```License
-------This library is licensed under the MIT license. For further information see LICENSE file.
Examples
------``` php
getBalance() . PHP_EOL;
echo "number of blocks: " . $bitcoinClient->getBlockCount() . PHP_EOL;
```That's it! I hope this peace of software will be helpful!
... if you think it is ... feel free to donate some of your Bitcoins to keep the development going ;-)
``` phpecho "transaction id: ". $bitcoinClient->sendToAddress('1JGNmDQVjk7T4S1pcvdDsPJsFuQuZcMDe8', 0.01, 'donation');
```Have fun!