定制 secucard/secucard-connect 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

secucard/secucard-connect

最新稳定版本:v2.0.0

Composer 安装命令:

composer require secucard/secucard-connect

包简介

secucard connect PHP client SDK

README 文档

README

If you start with a new project please use this SDK: https://github.com/secuconnect/secuconnect-php-sdk

Requirements

Composer

You can install the bindings via Composer. Add this to your composer.json:

{
  "require": {
    "secucard/secucard-connect":"^1.26.0"
  }
}

Then install via:

composer install

To use the bindings, use Composer's autoload:

require_once('vendor/autoload.php');

Getting Started

Simple usage with client credentials looks like:

include "vendor/autoload.php";

$config = array();

$credentials = new ClientCredentials('your-id','your-secret')

$fp = fopen("/tmp/secucard_php_test.log", "a");
$logger = new secucard\client\log\Logger($fp, true);

// general storage, here used shared for tokens and internal caching, but recommendation is to split up in two 
 $store = new FileStorage('your-storage-file-path');
 
// create Secucard client
$secucard = new SecucardConnect($config, $logger, $store, $store, $credentials);

// use secucard client to get available loyalty/cards list
$list = $secucard->Loyalty->Cards->getList();

Documentation

Please see http://developer.secuconnect.com/doc/guide for up-to-date documentation.

Tests

In order to run tests first install PHPUnit via Composer:

composer update --dev

To run the test suite:

./vendor/bin/phpunit

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2015-08-04