PHP code example of viniciusrbezerra / autentique
1. Go to this page and download the library: Download viniciusrbezerra/autentique 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/ */
viniciusrbezerra / autentique example snippets
ment = new \Autentique\Document();
$folder = new \Autentique\Folder();
/**
* Create Document
*/
$document = (new \Autentique\Document())->createDocument(
"document_name",
[
["email" => "[email protected]", "action" => "SIGN"],
],
"path_to_document"
);
/**
* Create Folder
*/
$createdFolder = $folder->createFolder("folder_name");
/**
* Move document to folder
*/
$moveFile = (new \Autentique\Document())->moveDocumentToFolder($document->callback()->createDocument->id, $createdFolder->callback()->createFolder->id);
/**
* Sign the document
*/
$sign = (new \Autentique\Document())->signDocument($document->callback()->createDocument->id);