2017 © Pedro Peláez
 

library cnvex-white-finance

The cnvex.cn White Finance PHP SDK

image

bravist/cnvex-white-finance

The cnvex.cn White Finance PHP SDK

  • Wednesday, November 29, 2017
  • by bravist
  • Repository
  • 1 Watchers
  • 1 Stars
  • 74 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 9 Versions
  • 6 % Grown

The README.md

The e.cnvex.cn White Finance API PHP SDK

简介

维配白条PHP SDK,使用维配APP购买配件支持维配白条支付。, (*1)

扩展包依赖 + PHP 5.6+ || PHP 7.0+ + guzzlehttp/guzzle + phpunit/phpunit, (*2)

安装 Cnvex.cn PHP SDK

使用composer

composer 是php的包管理工具, 通过composer.json里的配置管理依赖的包,同时可以在使用类时自动加载对应的包, 在你的composer.json中添加如下依赖, (*3)

执行, (*4)

composer require bravist/cnvex-white-finance

使用 Composer 的 autoload 引入, (*5)

require_once('vendor/autoload.php');

手动引入

``` php require_once('/path/to/cnvex-white-finance/api.php');, (*6)



## For Laravel Add the following line to the section `providers` of `config/app.php`: ```php 'providers' => [ //... Bravist\CnvexWhiteFinance\ServiceProvider::class, ],

publish the configuration:, (*7)

php artisan vendor:publish --provider="Bravist\CnvexWhiteFinance\ServiceProvider"

as optional, you can use facade:, (*8)

'aliases' => [
    'CnvexWhiteFinance' => Bravist\CnvexWhiteFinance\Facade\CnvexWhiteFinance::class
],

support package auto discover on laravel 5.5., (*9)

For Lumen

Add the following line to bootstrap/app.php after // $app->withEloquent();, (*10)

...
// $app->withEloquent();
$app->register(Bravist\CnvexWhiteFinance\ServiceProvider::class);
...

Usage


>>> CnvexWhiteFinance::supportWhiteFinance('5131261983082700301') => {#1239 +"result": true, +"errorCode": 0, +"errorMessage": "success", +"data": {#1237 +"creditAccountNumber": "5131261983082700301", +"idCardType": "身份证", +"idCardNumber": "5131261983082700301", +"effectiveDate": 1479710296558, +"expiredDate": 1605940696558, +"creditLimitAmount": 10000, +"frozenAmount": 0, +"availableAmount": 9400, +"usedAmount": 300, +"overdue": true, +"lastRepayDate": 1511159896558, +"lastRepayAmount": 0, +"overdueInterestAmount": 0, +"loanAccountCount": 0, +"acLoanAccountCount": 0, +"overdueLoanAccountCount": 0, +"overLoanAccountCount": 0, +"createDate": 1479710296558, +"lastUpdateDate": 1479710296558, }, }

more see phpunit from tests directory., (*11)

The Versions

29/11 2017

dev-master

9999999-dev

The cnvex.cn White Finance PHP SDK

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar bravist

29/11 2017

0.1.7

0.1.7.0

The cnvex.cn White Finance PHP SDK

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar bravist

29/11 2017

0.1.6

0.1.6.0

The cnvex.cn White Finance PHP SDK

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar bravist

29/11 2017

0.1.5

0.1.5.0

The cnvex.cn White Finance PHP SDK

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar bravist

28/11 2017

0.1.4

0.1.4.0

The cnvex.cn White Finance PHP SDK

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar bravist

22/11 2017

0.1.3

0.1.3.0

The cnvex.cn White Finance PHP SDK

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar bravist

21/11 2017

0.1.2

0.1.2.0

The cnvex.cn White Finance PHP SDK

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar bravist

21/11 2017

0.1

0.1.0.0

The cnvex.cn White Finance PHP SDK

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar bravist

21/11 2017

0.1.1

0.1.1.0

The cnvex.cn White Finance PHP SDK

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar bravist