1. Go to this page and download the library: Download dencel/laravel-eparaksts 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/ */
dencel / laravel-eparaksts example snippets
use Dencel\LaravelEparaksts\Facades\Eparaksts;
// In your controller — upload file(s) and redirect the user into the signing flow.
return Eparaksts::upload('/path/to/document.pdf')
->redirectAfter(route('documents.show', $doc))
->sign();
// Upload to separate sessions first.
$sessionA = Eparaksts::upload($pathA)->getSession();
$sessionB = Eparaksts::upload($pathB)->getSession();
// Redirect the user into the signing flow for both sessions at once.
return Eparaksts::session($sessionA)
->batch([$sessionB])
->redirectAfter(route('documents.index'))
->sign();
$validation = Eparaksts::session($sessionId)->getFileValidation();
// or for a specific file:
$validation = Eparaksts::session($sessionId)->getFileValidation($fileId);