1. Go to this page and download the library: Download secucard/secucard-connect library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
secucard / secucard-connect example snippets
$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();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.