omnisign / docusign
Omnisign DocuSign: envelopes through DocuSign's eSignature REST API v2.1 - JWT grant with the application's RSA key, documents, signers in order, signature tabs, embedded signing (recipient views), reminders, voiding, the combined signed document and the certificate of completion, Connect webhooks w
Requires
- php: >=8.2
- ext-openssl: *
- omnisense/contracts: ^1.0
- omnisense/omnisign: ^1.0
- symfony/http-client: ^6.4|^7.0|^8.0
Requires (Dev)
- phpunit/phpunit: ^11.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
DocuSign eSignature for omnisense/omnisign: envelopes through the REST API v2.1, by e-mail or signed in the application's page, the JWT grant for an integration acting as one of the account's users, Connect webhooks with their HMAC checked.
use Omnisign\Docusign\DocusignGatewayFactory; $gateway = (new DocusignGatewayFactory($httpClient))->create([ 'integration_key' => $integrationKey, 'user_id' => $userId, 'private_key' => '/run/secrets/docusign.pem', 'account_id' => $accountId, 'sandbox' => true, ]); $envelope = $gateway->send($gateway->create($lease)); // POST /envelopes (created), then sent $gateway->signingUrl($envelope, 'tenant', $returnUrl); // a recipient view (embedded signers)
Written from DocuSign's eSignature REST API v2.1 OpenAPI and its guides. Not verified in real: no developer account.
Documentation: the options and the JWT grant, from an envelope to DocuSign's, Connect, what was verified.
Install
composer require omnisign/docusign
It brings the family's core, omnisense/omnisign, and omnisense/contracts with it. A DocuSign account is needed (a free developer account for the sandbox): an integration key, a user who granted consent, its RSA private key, the account id. The tests run on recorded answers.
Usage policy
policy.json, read on 2026-11-10 in DocuSign's rules and limits
and developer terms: 3,000 calls an hour per account,
a burst of 500 in 30 seconds (200 in the developer environment, declared when sandbox is true).
One status poll per envelope every 15 minutes, counted per envelope ("scope": "resource",
"per": "envelope"): fetch() of an envelope polled less than 15 minutes ago is a
UsageLimitReachedException, never sent. Prefer Connect webhooks. A 429 holds
the gateway's next calls.
Responsibility
This package is an independent, unofficial client: it is not affiliated with, endorsed by or sponsored by Docusign, Inc. It reaches their service on behalf of whoever runs it, and it does not redistribute their data beyond the short excerpts recorded as test fixtures. Its MIT licence covers this package's code only and grants no right to the service or to its data.
Whoever installs and runs this package is responsible for complying with Docusign's terms (Developer Terms and Conditions), for obtaining whatever they require (an account, a key, a licence or subscription, an attribution or a citation, a rate limit to respect), and for any use made of what it returns. The authors publish it free of charge, make no commercial use of it, and accept no liability for how it is used (see LICENSE).
License: MIT since 2026-10-09; earlier versions remain published under LGPL-3.0-or-later.