contractlayer / econtract-laravel
Laravel integration of eContract e-signatures: provider interface, webhook verification, signed PDF download
Package info
github.com/contractlayer/econtract-laravel
pkg:composer/contractlayer/econtract-laravel
Requires
- php: ^8.2
- illuminate/database: ^11.0|^12.0|^13.0
- illuminate/http: ^11.0|^12.0|^13.0
- illuminate/queue: ^11.0|^12.0|^13.0
- illuminate/support: ^11.0|^12.0|^13.0
Requires (Dev)
- orchestra/testbench: ^9.0|^10.0|^11.0
- phpunit/phpunit: ^11.0|^12.0|^13.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Laravel package for eContract e-signatures: a SignatureProvider
interface your code depends on, the eContract implementation, webhook signature verification, a queued
job that downloads the signed PDF and a reconcile command. Laravel 11, 12 and 13, PHP 8.2+.
Guide: Integrating eContract. Runnable Node.js example and cURL scripts: econtract-integration-demo.
composer require contractlayer/econtract-laravel php artisan vendor:publish --tag=econtract-config php artisan migrate
ECONTRACT_API_KEY=cl_test_xxx ECONTRACT_WEBHOOK_SECRET=…
Your code depends on SignatureProvider; see examples/HireController.php.
The webhook route POST /webhooks/econtract is registered for you; run a queue worker for the download
job and schedule econtract:reconcile hourly. Listen to SignatureRequestUpdated to update your domain.
Start with a test key (cl_test_…): contracts are marked TEST, no emails are sent and the signer code is
000000.
Tests
bin/test-docker.sh (Docker, no local PHP) or composer install && vendor/bin/phpunit.
License
MIT