atanenl / signrequest
SignRequest API Client
Installs: 28 880
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 6
Forks: 5
Open Issues: 2
Requires
- php: >=5.5.9
- anlutro/curl: ^1.4
This package is not auto-updated.
Last update: 2025-01-27 11:56:59 UTC
README
Client lib for the SignRequest API
Usage
// initialize the client $client = new \AtaneNL\SignRequest\Client('yourApiKey123'); // send a document to SignRequest $cdr = $client->createDocument('/path/to/file', 'localReferenceToThisFile'); // define recipients $recipient = [ 'first_name' => 'John', 'last_name' => 'Smith', 'email' => 'smith@example.com', 'verify_phone_number' => false, 'needs_to_sign' => true, 'order' => 0, 'language' => 'nl', 'force_language' => true, 'redirect_url' => 'http://www.example.com/thank-you-for-signing', // redirect here after the user finished signing ]; $recipients = [$recipient]; // you can add as many as you need // notify intended signers $result = $client->sendSignRequest($cdr->uuid, 'sender@company.com', $recipients, "Please sign this");
The default language is set to dutch, change it by:
\AtaneNL\SignRequest\Client::$defaultLanguage = 'en';
Refer to the SignRequest API manual page for full options.