1. Go to this page and download the library: Download atanenl/signrequest 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/ */
atanenl / signrequest example snippets
// 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' => '[email protected]',
'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, '[email protected]', $recipients, "Please sign this");