Download the PHP package oi-lab/oi-laravel-sign without Composer
On this page you can find all versions of the php package oi-lab/oi-laravel-sign. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package oi-laravel-sign
Oi Laravel Sign
Online e-signature for any model of a Laravel application — a quote, a contract, a purchase order. The signer opens a link without an account, reads the document, declares their identity, consents, and confirms with a one-time code sent by e-mail or SMS. The package then appends a "Signature certificate" page to the PDF, seals it with the server's certificate, and keeps a timestamped evidence trail. No third-party provider is involved: it is a simple electronic signature in the sense of eIDAS and article 1367 of the French Civil Code, enough to accept a quote.
Features
- Any model: implement the
Signablecontract and use theHasSignatureRequeststrait. - Public signing screens: mobile-first Blade screens in the issuer's colors, in English and French.
- One-time code by e-mail or SMS: 6 digits, valid 10 minutes, 5 attempts, then a temporary lock.
- Integrity: the PDF is copied and fingerprinted (SHA-256) when the request is sent; a changed document version or an altered copy can no longer be signed.
- Sealed PDF: the original pages, a certificate page (declared identity, UTC date, verification method, fingerprints, transaction ID, evidence trail) and a PAdES-Basic seal that PDF readers check.
- Evidence trail: an append-only log of every step with IP, user agent and channel, exportable as JSON.
- Retention: files are written once and a signed request cannot be deleted for good before the end of its retention period (10 years by default).
- Multi-tenant: an optional
ownermorph ties each request to its organization. - Extensible: drivers for the signature, the PDF sealer and the code channels; events for every outcome.
How It Works
A request is pending, then viewed, until it is signed, declined by the signer, cancelled by the
issuer or expired (past its date, document modified, or model no longer signable).
Requirements
- PHP 8.2+ with the OpenSSL extension
- Laravel 11, 12, or 13
- spatie/laravel-data ^4.23
- setasign/fpdi and tecnickcom/tcpdf (installed with the package)
Installation
Publish & Migrate
Publish the screens, the certificate page and the translations to customize them:
Seal certificate
The default pades sealer needs a certificate. For development, create a self-signed one:
and copy the two printed lines into .env. In production, use a seal certificate issued by a trusted
authority (PEM + key, or a .p12 bundle with OI_SIGN_CERTIFICATE_PASSWORD).
Configuration
Usage
Make a model signable
Request a signature
Creating a request cancels the open ones of the same model ('supersede' => false to keep them).
Follow and manage requests
Events
| Event | When |
|---|---|
SignatureRequested |
A request was created |
SignatureViewed |
The signer opened the link for the first time |
SignatureSigned |
The document was signed and the signed PDF stored |
SignatureDeclined |
The signer declined (decline_reason) |
SignatureCancelled |
The issuer cancelled the request |
SignatureExpired |
Past its date, document modified or no longer signable ($reason) |
Every event carries $signatureRequest. Listen to them to update your own model:
Commands
AI Assistant Skills
This package ships an AI skill teaching assistants how to use it. Install it in your project with:
Testing
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
When contributing:
- Write tests for new features
- Ensure all tests pass:
vendor/bin/pest - Follow existing code style
- Update documentation as needed
License
The MIT License (MIT). Please see the License File for more information.
Credits
Olivier Lacombe - Creator and maintainer
Olivier is a Product & Technology Director based in Montpellier, France, with over 20 years of experience innovating in UX/UI and emerging technologies. He specializes in guiding enterprises toward cutting-edge digital solutions, combining user-centered design with continuous optimization and artificial intelligence integration.
Projects & Resources:
- OI Dev Docs - Documentation for all Open Source OI Lab packages
- OnAI - Training courses and masterclasses on generative AI for businesses
- Promptr - Prompt engineering Management Platform
Support
For support, please open an issue on the GitHub repository.
All versions of oi-laravel-sign with dependencies
ext-openssl Version *
illuminate/cache Version ^11.0|^12.0|^13.0
illuminate/console Version ^11.0|^12.0|^13.0
illuminate/contracts Version ^11.0|^12.0|^13.0
illuminate/database Version ^11.0|^12.0|^13.0
illuminate/filesystem Version ^11.0|^12.0|^13.0
illuminate/http Version ^11.0|^12.0|^13.0
illuminate/notifications Version ^11.0|^12.0|^13.0
illuminate/queue Version ^11.0|^12.0|^13.0
illuminate/routing Version ^11.0|^12.0|^13.0
illuminate/support Version ^11.0|^12.0|^13.0
illuminate/translation Version ^11.0|^12.0|^13.0
illuminate/view Version ^11.0|^12.0|^13.0
setasign/fpdi Version ^2.6
spatie/laravel-data Version ^4.23
tecnickcom/tcpdf Version ^6.7