secucard / secucard-connect
secucard connect PHP客户端SDK
v2.0.0
2018-09-18 09:19 UTC
Requires
- php: >=5.5.0
- netresearch/jsonmapper: ^1.4
- php-http/client-common: ^1.7
- php-http/client-implementation: ^1.0
- php-http/discovery: ^1.4
- php-http/httplug: ^1.1
- php-http/logger-plugin: ^1.0
- php-http/message-factory: ^1.0
- psr/http-message: ^1.0
- psr/log: ~1.0
Requires (Dev)
- php-http/mock-client: 1.1.*
- dev-master
- v2.0.0
- 1.27.0
- 1.26.0
- 1.25.0
- 1.24.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.1
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.1
- 1.14.0
- 1.13.11
- 1.13.10
- 1.13.9
- 1.13.8
- 1.13.7
- 1.13.6
- 1.13.5
- 1.13.4
- 1.13.3
- 1.13.1
- 1.13.0
- 1.12.2
- 1.12.1
- 1.12.0
- v1.11.2
- v1.11.1
- v1.11.0
- v1.10.1
- v1.10.0
- v1.9.5
- v1.9.4
- v1.9.3
- v1.9.2
- v1.9.1
- v1.9.0
- v1.8.0
- v1.7.1
- v1.7.0
- v1.6.1
- v1.6.0
- v1.5.1
- v1.5.0
- v1.4.1
- v1.4.0
- v1.3.1
- v1.1.2
- v1.1.0
- v1.0.9
- v1.0.8
- v1.0.7
- v1.0.6
- v1.0.5
- v1.0.4
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0.0
- v0.1.3
- v0.1.2
- v0.1.1
- v0.1.0
- v0.0.5
- v0.0.4
- v0.0.3
- v0.0.2
- v0.0.1
- dev-release/1.27.0
- dev-dependabot/composer/netresearch/jsonmapper-tw-5.0.0
- dev-develop
- dev-support/2.x
This package is auto-updated.
Last update: 2024-09-10 12:38:34 UTC
README
如果您开始一个新的项目,请使用此SDK: https://github.com/secuconnect/secuconnect-php-sdk
需求
- PHP 7.4.0及更高版本。
- Composer。
- 如果您使用字节码缓存,例如APC,请激活PHPDoc注释的存储和加载。(更多信息请参见例如: https://php.ac.cn/manual/de/opcache.configuration.php#ini.opcache.save-comments )。
Composer
您可以通过 Composer 安装绑定。将其添加到您的 composer.json
{ "require": { "secucard/secucard-connect":"^1.26.0" } }
然后通过以下方式安装
composer install
要使用绑定,请使用Composer的自动加载
require_once('vendor/autoload.php');
入门指南
使用客户端凭据的简单用法如下
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();
文档
请参阅http://developer.secuconnect.com/doc/guide以获取最新的文档。
测试
composer update --dev
要运行测试套件
./vendor/bin/phpunit