Download the PHP package signwell/signwell-sdk-php without Composer
On this page you can find all versions of the php package signwell/signwell-sdk-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download signwell/signwell-sdk-php
More information about signwell/signwell-sdk-php
Files in signwell/signwell-sdk-php
Package signwell-sdk-php
Short Description PHP SDK for the SignWell API - electronic signature platform
License MIT
Homepage https://github.com/Bidsketch/signwell-sdk-php
Informations about the package signwell-sdk-php
SignWell PHP SDK
PHP SDK for the SignWell API.
Install
Requires PHP 8.2 or newer.
Quick Start
Resources, Models, And Errors
HTTP 403 responses raise Errors\PermissionDeniedError, which remains compatible with Errors\ForbiddenError catches. Transport failures raise Errors\ApiConnectionError; Errors\TransportError is available as an additive alias. Local required-argument validation uses PHP's native \InvalidArgumentException.
Binary And JSON Response Modes
Some SignWell endpoints can return either binary files or JSON objects. The SDK selects the expected response type from the request flags.
getNom151Certificate rejects url_only: true and object_only: true together.
Convenience Workflows
Client provides thin wrappers for common API workflows while keeping the generated resources available when you need every option.
Embedded Helpers
Embedded signing documents must include fields for every recipient, set with_signature_page: true, or set text_tags: true. The helper validates this before calling the API.
Pass the same CSP nonce to scriptTag() and iframe helpers when your page uses nonce-based script-src.
The static SignWell\Sdk\Embedded helper remains available when you do not need a configured client object.
Webhook Verification
Use verifyEventOnce or verifyEventOnceOrThrow with an application-provided atomic replay store for side-effecting webhook handlers. Replay stores should return false only for duplicate keys. The included memory store is for local development and single-process examples; when full, it evicts the oldest unexpired entry.
Laravel
The package auto-discovers SignWell\Sdk\Laravel\SignWellServiceProvider when installed in a Laravel app. Publish configuration:
Set SIGNWELL_API_KEY in your environment, then resolve APIs from the container:
The facade exposes configured resources and the same convenience helpers as the vanilla client:
Use SignWell\Sdk\Webhook directly for webhook signature verification.
Examples
The generated package includes runnable examples:
These examples create test-mode signing requests. Set SIGNWELL_EXAMPLE_RECIPIENT_EMAIL and SIGNWELL_EXAMPLE_RECIPIENT_NAME to override the placeholder signer.
Documentation
Generated API and model references are in docs/.
License
MIT
All versions of signwell-sdk-php with dependencies
ext-curl Version *
ext-json Version *
ext-mbstring Version *
guzzlehttp/guzzle Version ^7.8
guzzlehttp/psr7 Version ^2.6