1. Go to this page and download the library: Download retech/sign-me 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/ */
retech / sign-me example snippets
use Retech\Celest\SignMe\SignMeClient;
$sdk = (new SignMeClient())->authenticate();
// create a new document to sign
$newDocument = $sdk->uploadDocument('SDK upload','path/contracts/max-hunter-lease-agreement.pdf');
// add Signatory
$signatoryMax = $newDocument->addSignatory('my-reference-c9d9b8b8', 'Max Hunter', '[email protected]');
// create field on page 4
$signatureField = $signatoryMax->addField('Please sign here', 4);
// move field in position using percentages
$signatureField->setX(53.3);
$signatureField->setY(40);
// you can set width/height as well
$signatureField->setHeight(7);
// send changes to API
$signatureField->update();
// and then some pseudo-code to get the picture
$email = new MyEmailClientWrapper();
$email->to('Max Hunter', '[email protected]');
$email->body('Hi Max. Please sign this: ' . $signatoryMax->getSignatureLink());
$email->send();
$client = new SignMeClient();
$client->authenticate();