tucker-eric / laravel-docusign
Laravel 6 Wrapper for Official DocuSign Rest API
Installs: 413 591
Dependents: 0
Suggesters: 0
Security: 0
Stars: 39
Watchers: 5
Forks: 17
Open Issues: 3
Requires
- php: ^7.3 | ^8.0
- illuminate/support: ~6.0|~7.0|~8.0|~9.0|~10.0|~11.0
- tucker-eric/docusign-rest-client: ~2.0|~3.0|~4.0|~5.0
README
A Laravel wrapper for the Docusign Rest Client
Install Through Composer
composer require tucker-eric/laravel-docusign
If you are using Laravel 6 or a newer version the package will automatically register its service provider. You only need to generate the config file.
After updating composer, add the service provider to the providers
array in config/app.php
LaravelDocusign\DocusignServiceProvider::class
Add the facade to the aliases
array in config/app.php
'DocuSign' => LaravelDocusign\Facades\DocuSign::class,
Generate the config file:
php artisan vendor:publish --provider="LaravelDocusign\DocusignServiceProvider"
Add the following to your .env
file (matching the config):
DOCUSIGN_USERNAME=[YOUR_DOCUSIGN_USERNAME]
DOCUSIGN_PASSWORD=[YOUR_DOCUSIGN_PASSWORD]
DOCUSIGN_INTEGRATOR_KEY=[YOUR_DOCUSIGN_INTEGRATOR_KEY]
Usage
For usage see the Docusign Rest Client
Using the Facade
You can create a new instance of the DocuSign Client with:
$client = DocuSign::create();
Access DocuSign Models:
$signer = DocuSign::signer([ 'name' => 'John Doe', 'email' => 'Jdoe123@example.com' ]);
Access DocuSign Api endpoints using get()
;
DocuSign::get('folders')->callList();
OR
Using the LaravelDocusign\Client
class
You can create a new instance of the DocuSign Client with:
$client = new LaravelDocusign\Client;