定制 laulamanapps/document-signer-validsign 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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:

  1. Parses {[type:signer:name]} placeholders out of the HTML.
  2. Substitutes each one with a hidden anchor token ([[VS:type:signer:name]]).
  3. Renders the HTML to PDF via the SDK's PdfRenderer (Browsershot by default).
  4. POSTs the PDFs + a OneSpan package JSON to POST /packages with anchor extraction enabled, so ValidSign positions each signature/field at its anchor location.
  5. Returns an EnvelopeReceipt containing the ValidSign package id and a normalised EnvelopeStatus.

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
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 1

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: proprietary
  • 更新时间: 2026-06-30

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固