laulamanapps/document-signer-validsign
Composer 安装命令:
composer require laulamanapps/document-signer-validsign
包简介
ValidSign implementation of the document signer SDK.
README 文档
README
ValidSign (OneSpan Sign) implementation of the
SignatureProvider contract from
laulamanapps/document-signer-sdk.
Install
composer require laulamanapps/document-signer-validsign
Quick start
use LauLamanApps\DocumentSigner\Sdk\Document\Document; use LauLamanApps\DocumentSigner\Sdk\Envelope\Envelope; use LauLamanApps\DocumentSigner\Sdk\Signer\Signer; use LauLamanApps\DocumentSigner\ValidSign\ValidSignConfig; use LauLamanApps\DocumentSigner\ValidSign\ValidSignProvider; $provider = new ValidSignProvider(new ValidSignConfig( apiKey: getenv('VALIDSIGN_API_KEY'), baseUrl: 'https://my.validsign.nl/api', )); $receipt = $provider->send(new Envelope( name: 'NDA', documents: [new Document( id: 'nda', name: 'NDA', html: '<p>{[signature:counterparty:sig]} on {[date:counterparty:signdate]}</p>', )], signers: [new Signer(key: 'counterparty', name: 'Jane Doe', email: 'jane@example.com')], emailSubject: 'Please sign the NDA', )); echo $receipt->provider; // "validsign" (ValidSignProvider::NAME) echo $receipt->providerEnvelopeId; // ValidSign packageId
What it does
For every document in the envelope, this package:
- Parses
{[type:signer:name]}placeholders out of the HTML. - Substitutes each one with a hidden anchor token (
[[VS:type:signer:name]]). - Renders the HTML to PDF via the SDK's
PdfRenderer(Browsershot by default). - POSTs the PDFs + a OneSpan
packageJSON toPOST /packageswith anchor extraction enabled, so ValidSign positions each signature/field at its anchor location. - Returns an
EnvelopeReceiptcontaining the ValidSign package id and a normalisedEnvelopeStatus.
Field mapping
SDK FieldType |
ValidSign type / subtype |
|---|---|
Signature |
SIGNATURE / FULLNAME |
Initials |
SIGNATURE / INITIALS |
Text |
INPUT / TEXTFIELD |
Date |
INPUT / LABEL ({approval.signed}) |
Checkbox |
INPUT / CHECKBOX |
Requirements
- PHP 8.5
laulamanapps/documentsigner-sdk- A ValidSign tenant + API key
- Node.js + Puppeteer (for the default Browsershot renderer)
Documentation
The full provider guide — credentials, endpoint mapping, status mapping, sequential signing, injecting a custom HTTP client, troubleshooting — lives in the SDK's docs:
统计信息
- 总下载量: 3
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 1
其他信息
- 授权协议: proprietary
- 更新时间: 2026-06-30