Laravel Docusign
A Laravel wrapper for the Docusign Rest Client, (*1)
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., (*2)
After updating composer, add the service provider to the providers array in config/app.php, (*3)
LaravelDocusign\DocusignServiceProvider::class
Add the facade to the aliases array in config/app.php, (*4)
'DocuSign' => LaravelDocusign\Facades\DocuSign::class,
Generate the config file:, (*5)
php artisan vendor:publish --provider="LaravelDocusign\DocusignServiceProvider"
Add the following to your .env file (matching the config):, (*6)
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, (*7)
Using the Facade
You can create a new instance of the DocuSign Client with:, (*8)
$client = DocuSign::create();
Access DocuSign Models:, (*9)
$signer = DocuSign::signer([
'name' => 'John Doe',
'email' => 'Jdoe123@example.com'
]);
Access DocuSign Api endpoints using get();, (*10)
DocuSign::get('folders')->callList();
OR, (*11)
Using the LaravelDocusign\Client class
You can create a new instance of the DocuSign Client with:, (*12)
$client = new LaravelDocusign\Client;