Skip to content

Getting started

bash
composer require lsnepomuceno/laravel-a1-pdf-sign

Nothing to register: the service provider is discovered and the A1PdfSign facade is available immediately.

Requirements

PHP8.4.1 – 8.5
Laravel13
Extensionsext-json, plus what signet-pdf requires: openssl, mbstring, gd, zlib, sodium, fileinfo
openssl on PATHfor validation, and for reading legacy PFX bundles under OpenSSL 3

php artisan a1-pdf-sign:check answers the last one, and everything else about the environment, before anything is signed.

Sign something

php
use LSNepomuceno\LaravelA1PdfSign\Facades\A1PdfSign;

$signed = A1PdfSign::newSignature()
    ->certificate($pfxPath, $password)
    ->pdf($contractPath)
    ->sign();

$signed->save(storage_path('app/contract-signed.pdf'));

The builder is signet-pdf's PendingSignature, so its reference is the full list of what it takes: seals, profiles, certification, field locks, a signer's name and reason.

Where things live

You wantLook
a config keyConfiguration
to sign from S3, or from an uploadDisks and uploads
to store a certificateCertificates
to fill a field somebody else placedTemplates
to check a document that is already signedValidation
to test an application that signsTesting
what a profile means, how a seal is drawn, what ICP-Brasil requiressignet-pdf

Version undefined. Released under the MIT License.