secucard / secucard-connect
secucard connect PHP client 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.*
This package is auto-updated.
Last update: 2026-06-10 16:28:33 UTC
README
If you start with a new project please use this SDK: https://github.com/secuconnect/secuconnect-php-sdk
Requirements
- PHP 7.4.0 and later.
- Composer.
- If you are using a bytecode cache, such as APC activate the storage and load of PHPDoc comments. (For more information see f.e.: http://php.net/manual/de/opcache.configuration.php#ini.opcache.save-comments ).
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