承接 chendujin/bitcoin 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

chendujin/bitcoin

Composer 安装命令:

composer require chendujin/bitcoin

包简介

bitcoin is a plugin for a unified Bitcoin digital currency open API interface

README 文档

README

Bitcoin Package for Laravel

Latest Stable Version Latest Unstable Version License Total Downloads

Introduction

This is a simple Laravel Service Provider providing for Generic JSON RPC

Installation

To install the PHP client library using Composer:

composer require chendujin/bitcoin

Laravel 5.5+

If you're using Laravel 5.5 or above, the package will automatically register the Bitcoin provider and facade.

Laravel 5.4 and below

Add Chendujin\Bitcoin\BitcoinServiceProvider to the providers array in your config/app.php:

'providers' => [
    // Other service providers...

    Chendujin\Bitcoin\BitcoinServiceProvider::class,
],

If you want to use the facade interface, you can use the facade class when needed:

use Chendujin\Bitcoin\Facade\Bitcoin;

Or add an alias in your config/app.php:

'aliases' => [
    ...
    'Bitcoin' => Chendujin\Bitcoin\Facade\Bitcoin::class,
],

Configuration

You can use artisan vendor:publish to copy the distribution configuration file to your app's config directory:

php artisan vendor:publish --provider="Chendujin\Bitcoin\BitcoinServiceProvider"

Then update config/bitcoin.php with your credentials. Alternatively, you can update your .env file with the following:

BTC_USER=xyy
BTC_SECRET=xyy
BTC_HOST=http://localhost
BTC_PORT=8332

Usage

To use the Bitcoin Client Library you can use the facade, or request the instance from the service container:

try{
        $ret = \Chendujin\Bitcoin\Facade\Bitcoin::getnewaddress('123456');
        print_r($ret);
    }catch (Exception $e){
        echo $e->getMessage();
    }

Or

$bitcoin = app('Bitcoin');

$result=$bitcoin->getnewaddress('123456');

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-07-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固