phramz/php-bitcoin-api 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

phramz/php-bitcoin-api

Composer 安装命令:

composer require phramz/php-bitcoin-api

包简介

PHP implementation of the bitcoind JSON-RPC API

README 文档

README

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

"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

use Phramz\Bitcoin\Api\Connection\BuzzConnection;
use Phramz\Bitcoin\Api\BitcoindClient;
use Buzz\Browser;

// setup a connection
$connection = new BuzzConnection(new Browser(), '192.168.56.1', '8333', 'username123', 'password123');

// setup the client
$bitcoinClient = new BitcoindClient($connection);

echo "current balance:  " . $bitcoinClient->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 ;-)

echo "transaction id: ". $bitcoinClient->sendToAddress('1JGNmDQVjk7T4S1pcvdDsPJsFuQuZcMDe8', 0.01, 'donation');

Have fun!

统计信息

  • 总下载量: 281
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 5
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 5
  • Watchers: 3
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-07-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固