Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
PHP wrapper around the RightSignature API
PHP
branch: master

Merge pull request #1 from 99designs/use-ergo-http

Replace 99designs/ergo with 99designs/ergo-http
latest commit 97fe136ad6
@arthens arthens authored
Failed to load latest commit information.
classes
tests
.gitignore
LICENSE
README.md
composer.json

README.md

rightsignature-php

A PHP wrapper around the RightSignature API.

This is not a complete implementation. The following API calls are implemented:

  • Document Details
  • Prepackage Template
  • Prefill Template
  • Send Template
  • Signer Links

The following API calls are not yet implemented:

  • List Documents
  • Batch Document Details
  • Resend Reminder Emails
  • Trash Document
  • Extend Expiration
  • Update Document Tags
  • Send Document
  • List Templates
  • Template Details
  • Build New Template
  • User Details
  • Add User
  • Usage Report

Pull requests welcome.

Dependencies

RightSignature\HttpClient currently has a dependency on Ergo. The test suite additionally requires SimpleTest and Mockery.

Usage

$client = RightSignature\HttpClient::forToken($myApiToken);
$rs = new RightSignature($client);

$document = $rs->documentDetails($someDocumentGuid);

Entities match the structure of the API responses:

// Access fields using ->
echo $document->state;

// Hyphen-separated identifiers become underscore_separated
echo $document->original_filename;

// Repeating elements are accessed like array members
echo $document->recipients[0]->name;

See RightSignature API documentation for details.

Something went wrong with that request. Please try again.