Download the PHP package dencel/laravel-eparaksts without Composer
On this page you can find all versions of the php package dencel/laravel-eparaksts. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dencel/laravel-eparaksts
More information about dencel/laravel-eparaksts
Files in dencel/laravel-eparaksts
Package laravel-eparaksts
Short Description Use Latvian eParaksts in your Laravel app.
License MIT
Homepage https://github.com/denissceluiko/laravel-eparaksts
Informations about the package laravel-eparaksts
laravel-eparaksts
Laravel package for integrating the Latvian eParaksts e-signature and identity platform into your Laravel 12/13 application.
Wraps dencel/eparaksts and provides:
- Fluent document-signing service with per-request session state
- OAuth identification and authentication flow
- Lifecycle callback hooks
- Blade logo components
Requirements
- PHP ≥ 8.4
- Laravel 12 or 13
- eParaksts API credentials (test environment)
Installation
Add to .env:
EPARAKSTS_REDIRECT must exactly match the callback URI registered for your client in the eParaksts developer portal. The default /eparaksts/callback is pre-registered for the test and/or production environment.
For production:
Quick start
Document signing
After signing completes the user is redirected back to your redirectAfter URL. Download the signed document:
Or save to a named disk:
Identity verification / login
Point a login button to:
Available flow values: mobile, eid, sc, cross.
On success the user is matched against the authentication_match fields in config/eparaksts.php and logged in via Auth::login(). Flash variable ep_error is set to user_not_found if no match.
Set registration_enabled => true in config to auto-create users on first login.
Logout
This redirects through eParaksts logout, then flushes the local session.
Lifecycle callbacks
Hook into any point of the signing flow:
Register on the service:
Available hooks: before/afterSignFlowSessionEstablished, before/afterIdentificationObtained, before/afterSigningIdentityObtained, afterDigestCalculated, beforeSignatureAuthorizationRedirect, before/afterSigningDigest, afterSigningFinalized, beforeFinalRedirect, onIdentificationReceived, onError.
Container format
By default documents are wrapped in an .edoc container. Override:
Advanced signing
eZīmogs+ / qualified eSeal
For server-side signing with a qualified certificate (CERT_QSEAL):
Archive timestamp (LTV)
Add a long-term validation (LTV) archive timestamp after signing:
Timestamp failure is non-fatal — signing completes, the error is logged internally.
Batch signing
Sign documents from multiple sessions in a single OAuth authorization. Each session must already have files uploaded.
After signing, download each session's file independently:
File validation
Validate a signed file's signatures after finalizeSigning() completes, while still attached to the session:
Returns the raw validation response from the SignAPI, or null if the session or file ID is missing. The shape and interpretation of the result is application-specific — there is no automatic pass/fail handling.
Age-gated identification
Require users to confirm they meet a minimum age during the identification flow:
Supported values: 14, 16, 18, 21. Omitting age performs standard identification with no age assertion.
Blade components
Available logo types: eparaksts, mobile, mobile-full, mobile-small, eid, eid-scan, eid-scan-small, karte, ezimogs, api.
Configuration
Publish the config:
See config/eparaksts.php for all options with inline documentation.
Development
License
MIT — see LICENSE.
All versions of laravel-eparaksts with dependencies
dencel/eparaksts Version ^0.3
illuminate/http Version ^12.0 || ^13.0
illuminate/console Version ^12.0 || ^13.0
illuminate/session Version ^12.0 || ^13.0
illuminate/support Version ^12.0 || ^13.0
illuminate/view Version ^12.0 || ^13.0