Download the PHP package turbodocx/sdk without Composer
On this page you can find all versions of the php package turbodocx/sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download turbodocx/sdk
More information about turbodocx/sdk
Files in turbodocx/sdk
Package sdk
Short Description Official PHP SDK for TurboDocx - E-signature API, document generation, PDF signing, and workflow automation
License MIT
Homepage https://www.turbodocx.com
Informations about the package sdk
TurboDocx PHP SDK
Official PHP SDK for TurboDocx - Digital signatures, document generation, and AI-powered workflows
The most developer-friendly DocuSign & PandaDoc alternative for e-signatures and document generation. Send documents for signature and automate document workflows programmatically.
Website • Documentation • API & SDK • Discord
⚡ Skip the boilerplate — let an agent scaffold it for you
Have an AI coding agent (Claude Code, Cursor, Copilot, Codex, Gemini CLI, OpenCode) install this SDK, configure your env, write working route handlers, and wire them into your app:
Then run /turbodocx-sdk inside your agent — or one of the focused shortcuts:
| Shortcut | What it scaffolds |
|---|---|
/turbodocx-sdk turbosign |
Send documents for e-signature, check status, download signed PDF |
/turbodocx-sdk deliverable |
Generate documents from templates with variable substitution |
/turbodocx-sdk turbopartner |
Provision and manage customer organizations (partner accounts) |
/turbodocx-sdk turbowebhooks |
Subscribe to signature.document.completed events + verify HMAC |
The skill auto-detects your framework (Laravel, Symfony, …) and follows your existing project conventions. Source: github.com/TurboDocx/quickstart.
Why TurboDocx?
A modern, developer-first alternative to legacy e-signature platforms:
| Looking for... | TurboDocx offers |
|---|---|
| DocuSign API alternative | Simple REST API, transparent pricing |
| PandaDoc alternative | Document generation + e-signatures in one SDK |
| HelloSign/Dropbox Sign alternative | Full API access, modern DX |
| Adobe Sign alternative | Quick integration, developer-friendly docs |
| SignNow alternative | Predictable costs, responsive support |
| Documint alternative | DOCX/PDF generation from templates |
| WebMerge alternative | Data-driven document automation |
Other platforms we compare to: SignRequest, SignEasy, Zoho Sign, Eversign, SignWell, Formstack Documents
TurboDocx Ecosystem
| Package | Description |
|---|---|
| @turbodocx/html-to-docx | Convert HTML to DOCX - fastest JS library |
| @turbodocx/n8n-nodes-turbodocx | n8n community nodes for TurboDocx |
| TurboDocx Writer | Microsoft Word add-in |
Features
- 🚀 Production-Ready — Battle-tested, processing thousands of documents daily
- 📝 Strong Typing — PHP 8.1+ enums and typed properties with PHPStan level 8
- ⚡ Modern PHP — Readonly classes, named parameters, match expressions
- 🔄 Industry Standard — Guzzle HTTP client, PSR standards compliance
- 🛡️ Type-safe — Catch errors at development time with static analysis
- 🤖 100% n8n Parity — Same operations as our n8n community nodes
Requirements
- PHP 8.1 or higher
- Composer
- ext-json
- ext-fileinfo
Installation
Install via AI Agent Skill
Let an AI coding agent set up this SDK for you with the TurboDocx Quickstart Agent Skill:
Works with Claude Code, GitHub Copilot, Cursor, OpenCode, and other AI coding agents. The skill detects your language, installs the package, and generates working integration code.
Quick Start
Configuration
Important: senderEmail is REQUIRED. This email will be used as the reply-to address for signature request emails. Without it, emails will default to "API Service User via TurboSign". The senderName is optional but strongly recommended for a professional appearance.
Environment Variables
We recommend using environment variables for your configuration:
API Reference
TurboSign
createSignatureReviewLink()
Upload a document for review without sending signature emails. Returns a preview URL.
sendSignature()
Upload a document and immediately send signature request emails.
getStatus()
Check the current status of a document.
download()
Download the signed PDF document.
void()
Cancel a signature request that hasn't been completed.
resend()
Resend signature request emails to specific recipients (or all).
getAuditTrail()
Get the complete audit trail for a document, including all events and timestamps.
The audit trail includes a cryptographic hash chain for tamper-evidence verification.
TurboWebhooks (Signature Webhook)
The TurboWebhooks class manages your organization's signature webhook — a single subscription to TurboDocx signature events (signature.document.completed, signature.document.voided). It also exposes a verifyWebhookSignature helper for incoming webhook receivers.
One webhook per org. The SDK manages a single fixed-name webhook (
signature) per org so SDK-managed and UI-managed webhooks stay in sync — what you create here also appears in the dashboard's Signature Webhooks settings page. To manage multiple webhooks per org, call the REST API directly.Requires administrator role. All webhook routes require an admin TDX- API key.
Configuration
Unlike TurboSign, TurboWebhooks does NOT require senderEmail — webhook routes don't send signature emails.
Create the signature webhook (save the secret immediately)
If the signature webhook already exists, createWebhook throws ConflictException (HTTP 409). Either update the existing one with updateWebhook or deleteWebhook first.
Get, update, delete
Test deliveries and replay
Rotate the secret
Aggregate stats
Verify incoming webhook signatures
Webhook deliveries from TurboDocx are signed with HMAC-SHA256 over "{$timestamp}.{$rawBody}" using your webhook secret. Use verifyWebhookSignature to verify them in your receiver:
By default the helper enforces a 300-second timestamp tolerance to prevent replay attacks. Pass toleranceSeconds: N (0 disables the check — not recommended in production).
Field Types
TurboSign supports 11 different field types:
Field Positioning
TurboSign supports two ways to position fields:
1. Coordinate-based (Pixel Perfect)
2. Template Anchors (Dynamic)
Placement Options:
FieldPlacement::REPLACE- Replace the anchor textFieldPlacement::BEFORE- Place before the anchorFieldPlacement::AFTER- Place after the anchorFieldPlacement::ABOVE- Place above the anchorFieldPlacement::BELOW- Place below the anchor
Advanced Field Options
File Input Methods
TurboSign supports three ways to provide the document:
1. Direct File Upload
2. File URL
3. TurboDocx Deliverable ID
Examples
Example 1: Simple Template Anchors
Example 2: Sequential Signing
Example 3: Status Polling
For more examples, see the examples/ directory.
TurboPartner (Partner API)
TurboPartner provides partner-level management capabilities for multi-tenant applications. Use this to programmatically manage organizations, users, API keys, and entitlements.
Partner Configuration
Partner Environment Variables
Organization Management
createOrganization()
Create a new organization under your partner account.
listOrganizations()
List all organizations with pagination and search.
getOrganizationDetails()
Get full details including features and tracking for an organization.
updateOrganizationInfo()
Update an organization's name.
updateOrganizationEntitlements()
Update an organization's features and tracking limits.
deleteOrganization()
Delete an organization (use with caution).
Organization User Management
addUserToOrganization()
Add a user to an organization with a specific role.
listOrganizationUsers()
List all users in an organization.
updateOrganizationUserRole()
Change a user's role within an organization.
resendOrganizationInvitationToUser()
Resend the invitation email to a pending user.
removeUserFromOrganization()
Remove a user from an organization.
Organization API Key Management
createOrganizationApiKey()
Create an API key for an organization.
listOrganizationApiKeys()
List all API keys for an organization.
updateOrganizationApiKey()
Update an organization API key's name or role.
revokeOrganizationApiKey()
Revoke (delete) an organization API key.
Partner API Key Management
createPartnerApiKey()
Create a new partner-level API key with specific scopes. The full key is only returned once in the response — save it securely. Subsequent list calls return a masked preview only.
listPartnerApiKeys()
List all partner API keys. Listed keys contain a masked preview (e.g. TDXP-a1b2...5e6f), never the full key.
updatePartnerApiKey()
Update a partner API key.
revokePartnerApiKey()
Revoke a partner API key.
Partner User Management
addUserToPartnerPortal()
Add a user to the partner portal with specific permissions.
listPartnerPortalUsers()
List all partner portal users.
updatePartnerUserPermissions()
Update a partner user's role and permissions.
resendPartnerPortalInvitationToUser()
Resend the invitation email to a pending partner user.
removeUserFromPartnerPortal()
Remove a user from the partner portal.
Audit Logs
getPartnerAuditLogs()
Get audit logs for all partner activities with filtering.
For more TurboPartner examples, see:
examples/turbopartner-organizations.phpexamples/turbopartner-users.phpexamples/turbopartner-api-keys.php
Error Handling
The SDK provides typed exceptions for different error scenarios:
All exceptions extend TurboDocxException and include:
statusCode(HTTP status code, if applicable)errorCode(Error code string, e.g., 'AUTHENTICATION_ERROR')message(Human-readable error message)
License
MIT
Support
Related Packages
- @turbodocx/html-to-docx - Convert HTML to DOCX
- @turbodocx/n8n-nodes-turbodocx - n8n integration
- TurboDocx Writer - Microsoft Word add-in
All versions of sdk with dependencies
ext-json Version *
ext-fileinfo Version *
guzzlehttp/guzzle Version ^7.8
psr/http-client Version ^1.0
psr/http-message Version ^2.0
