2017 © Pedro Peláez
 

library esm-sdk-php

image

xigen/esm-sdk-php

  • Thursday, January 21, 2016
  • by XigenChris
  • Repository
  • 1 Watchers
  • 1 Stars
  • 112 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

esm-sdk-php

Build Status Scrutinizer Code Quality Code Coverage, (*1)

A simple PHP Library that allows you to interact with Xigen's Signature Manager's API without needing to know the endpoints or make manual curl request., (*2)

Requirements

  • PHP >=5.4.38
  • Curl installed (used via guzzle)
  • API Key (You can get this via the ESM control panel)

Installation

Installation is done via composer, (*3)

composer require xigen/esm-sdk-php
<?php
require 'vendor/autoload.php';

$ESM = new \Xigen\ESM([
    'URL' => 'https://signaturemanager.co.uk/api/rest/v2/',
    'APIKEY' => 'TestAPIKEY'
]);

(Replacing APIKEY with your own, the current one will work with a demo client), (*4)

Usage

As an example we can a list of every user in the system, (*5)

$ESM->clientUsersGetAll();
foreach ($ESM->getRequestData()->payload->Data as $user) {
    var_dump($user, $user->Email);
}

To get a users signature you would do something like this, (*6)

$ESM->templateGetUsersSignature('User\'s hash goes here');
$ESM->getRequestData()->payload;

The Versions

21/01 2016

dev-master

9999999-dev

  Sources   Download

The Requires

 

The Development Requires

by Chris Hilsdon