formable/formable-sdk is the official PHP SDK for the Formable API (v1). It covers templates, signature requests, redlining, and billing.
- Guzzle HTTP client (injectable)
- PHP 8.1+
Installation
Initialize the client
Pass your API key from Settings. It’s sent as a bearer token on every request.Templates
Upload a document to create a reusable template, then mint edit URLs to place fields in the embedded editor. See the embedded templates walkthrough.file accepts a path, raw contents, or a PSR-7 stream.
Signature requests
Send a template for signing by email, or embed the signing experience in your product. See the embedded signing walkthrough.getSignedEnvelope throws a 409 until the document is complete. Wait for the document_completed webhook, or poll get until status is Completed.Redline requests
Run turn-based contract negotiation before signing. See the redlining walkthrough.Billing and health
Error handling
All non-2xx responses throw aFormableError with the server’s error message, HTTP status, and parsed response body.
Configuration
The client constructor takes an API key, then optionalbaseUrl and Guzzle client arguments.
Next steps
Quickstart
Go from a plain document to a signed PDF in 4 calls.
API reference
Every endpoint the SDK wraps, with a live playground.