Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Click Client

Click Client Laravel Package

docusign/click-client

View on GitHub
Deep Wiki
Context7

The Docusign package makes integrating Docusign into your apps and websites a super fast and painless process. The library is open sourced on GitHub, look for the docusign-click-php-client repository.

Frequently asked questions about Click Client
How do I integrate DocuSign signing into a Laravel app for customer portals?
Use the `docusign/click-client` package to create envelopes via Laravel controllers or services. Start with the 18 launchers for common workflows like sending signing requests. For user flows, implement Authorization Code Grant OAuth and store tokens securely in Laravel’s config or cache. Trigger signing links via email or redirect users to DocuSign’s embedded signing experience.
Does this package support Laravel’s dependency injection for DocuSign clients?
Yes, manually bind the DocuSign client to Laravel’s service container in a service provider. For example, register the client as a singleton with your API credentials. This allows injecting the client into controllers or jobs, following Laravel’s service-oriented architecture. Use interfaces to abstract the SDK for easier testing or future swaps.
What Laravel versions are compatible with docusign/click-client?
The package requires PHP 7.4+, which aligns with Laravel 8.x and 11.x. For Laravel 5.x or shared hosting with older PHP, consider a feature flag or branch targeting PHP 8.x. Test thoroughly in your CI/CD pipeline to ensure compatibility with your Laravel version’s dependencies.
How do I handle DocuSign webhooks in Laravel for real-time envelope status updates?
Manually route webhooks to a Laravel controller or middleware using the `HandleIncomingWebhook` pattern. Process webhooks asynchronously with Laravel queues to avoid timeouts. Validate signatures and map payloads to Laravel events (e.g., `EnvelopeSent`) to trigger notifications or database updates. Use exponential backoff for retries if processing fails.
Can I use this SDK for bulk sending documents or advanced analytics?
The `docusign/click-client` package is limited to the Click API, which doesn’t support bulk sends or analytics. For these features, combine it with DocuSign’s REST API or use a hybrid approach. Abstract API calls behind a service layer to switch between Click and REST APIs as needed, ensuring backward compatibility.
What’s the best way to secure OAuth credentials in Laravel?
Store DocuSign OAuth credentials (client ID, secret) in Laravel’s `.env` file, never in code. Use Laravel’s config system to load credentials securely. For token storage, leverage Laravel’s cache or database with encryption. Implement a dedicated OAuth service to handle token refreshes and rotation, following Laravel’s security best practices.
How do I test DocuSign integrations in Laravel without hitting rate limits?
Use DocuSign’s sandbox environment for testing, which doesn’t enforce rate limits. Mock the DocuSign client in unit tests with Laravel’s `Mockery` or PHPUnit. For integration tests, use the OAuth Token Generator to create short-lived tokens. Test edge cases like failed envelope sends or signature rejections with custom assertions.
Are there alternatives to this package for Laravel DocuSign integrations?
For Laravel-specific solutions, consider community packages like `spatie/laravel-docusign` (if available) or build a custom wrapper around the official SDK. Evaluate alternatives based on Laravel integration depth, maintenance activity, and feature parity. The official `docusign/click-client` offers more control but requires manual Laravel setup.
How do I handle production failures like DocuSign API timeouts or signature rejections?
Implement retry logic with exponential backoff for transient failures using Laravel’s queue system. For signature rejections, notify users via Laravel notifications and log events for auditing. Use compensating transactions (e.g., rollback workflows) if DocuSign failures impact critical business processes. Monitor API health with Laravel’s Horizon or external tools.
Can this package support multi-tenancy for SaaS apps with separate DocuSign accounts?
Yes, design your Laravel app to dynamically switch DocuSign credentials per tenant. Store tenant-specific OAuth tokens and API keys in a database or cache. Use Laravel’s middleware or service context to inject the correct DocuSign client for each request. Test thoroughly to ensure isolation between tenants and proper credential rotation.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
aimeos/prisma
besmartand-pro/php-quality-config
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky
spatie/mailcoach-vapor
spatie/laravel-javascript-views