承接 jaschilz/bitcoincomputer-php 相关项目开发

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

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

jaschilz/bitcoincomputer-php

Composer 安装命令:

composer require jaschilz/bitcoincomputer-php

包简介

Php libraries for bitcoin payment requests in the Bitcoin Computer Project.

README 文档

README

Build Status Code Climate Test Coverage

Bitcoin Computer PHP Library

Example

Install BTC-Channel

Download and install btc-channel. Be sure to install a specific payment channel adapter. Complete all configuration instructions.

Download the PHP Bitcoin Computer Library

In your composer.json:

    {
      "require": {
        "jaschilz/bitcoincomputer-php" : "0.*"
      }
    }

Code

In a page:

    <?php

    // Load Composer's autoload
    require_once dirname(__FILE__) . '/vendor/autoload.php';

    use BitcoinComputer\Request\Request;
    use BitcoinComputer\Request\RequestBuilder;

    session_start();

    /** @var boolean $sessionHasRequest */
    $sessionHasRequest = isset($_SESSION['request']);

    if (!$sessionHasRequest) {
        $_SESSION['request'] = RequestBuilder::begin()
            ->setSatoshi(400000)
            ->build();
    }

    /** @var Request $request */
    $request = $_SESSION['request'];

    if ($request->isPaid()) {
        // In this case, your request has been paid. Satisfy your visitor!
    } else {
        echo $request;
    }

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2016-02-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固