PHP code example of darvis / laravel-document-sign

1. Go to this page and download the library: Download darvis/laravel-document-sign 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/ */

    

darvis / laravel-document-sign example snippets


use Darvis\Signer\Facades\Signer;

$document = Signer::document(storage_path('app/contracts/contract.pdf'))
    ->title('Freelance agreement')
    ->addSigner('Alice Jansen', '[email protected]', page: 1, x: 10, y: 80)
    ->addSigner('Bob de Vries', '[email protected]', page: 1, x: 55, y: 80)
    ->send();

$document->refresh();

$document->status;          // DocumentStatus: Draft, Pending, Completed, Cancelled
$document->isFullySigned();
$document->signed_path;     // the final PDF on the configured disk
$document->auditEvents;     // document_created, invitation_sent, document_signed, document_completed