blockscore/blockscore-php 问题修复 & 功能扩展

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

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

blockscore/blockscore-php

最新稳定版本:v4.1.0

Composer 安装命令:

composer require blockscore/blockscore-php

包简介

An API wrapper for the BlockScore API using PHP.

README 文档

README

This is the official PHP client library of the BlockScore API. You can sign up for an account on our dashboard.

Requirements

PHP 5.3.29 and later.

Composer

This library can be used through Composer. To get started, add the following to your composer.json:

{
  "require": {
    "blockscore/blockscore-php": "4.*"
  }
}

Make sure to install the changes:

composer.phar install

Make sure that Composer autoload is added somewhere in your project like so:

require_once('vendor/autoload.php');

Manual Installation

If you would rather manually include the library in your project, you can download this repository and add the following line to your project:

require_once('/path/to/blockscore-php/init.php');

Getting Started

This is an example of creating a person verification and setting up the library:

\BlockScore\BlockScore::setApiKey('sk_test_11111111111111111111111111111111');

$person = \BlockScore\Person::create(array(
    'name_first' => 'Jane',
    'name_last' => 'Doe',
    'birth_day' => 1,
    'birth_month' => 1,
    'birth_year' => 1990,
    'document_type' => 'ssn',
    'document_value' => '0000',
    'address_street1' => '123 Something Ave',
    'address_city' => 'Newton Falls',
    'address_subdivision' => 'OH',
    'address_postal_code' => '44444',
    'address_country_code' => 'US',
));

var_dump($person);

Documentation

Our API Reference contains all of the code examples for this library.

Tests

If you want to run our test suite, please install PHPUnit using Composer

composer.phar update --dev

To run the client lib's test suite, run

./vendor/bin/phpunit

Credit

This library is largely based on the wonderful stripe-php library.

统计信息

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

GitHub 信息

  • Stars: 4
  • Watchers: 17
  • Forks: 12
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-03-11