项目作者: Tucker-Eric

项目描述 :
A Laravel 6 wrapper for the DocuSign Rest Client
高级语言: PHP
项目地址: git://github.com/Tucker-Eric/Laravel-Docusign.git
创建时间: 2016-05-26T18:07:36Z
项目社区:https://github.com/Tucker-Eric/Laravel-Docusign

开源协议:MIT License

下载


Laravel Docusign

A Laravel wrapper for the Docusign Rest Client

Install Through Composer

  1. 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

  1. LaravelDocusign\DocusignServiceProvider::class

Add the facade to the aliases array in config/app.php

  1. 'DocuSign' => LaravelDocusign\Facades\DocuSign::class,

Generate the config file:

  1. php artisan vendor:publish --provider="LaravelDocusign\DocusignServiceProvider"

Add the following to your .env file (matching the config):

  1. DOCUSIGN_USERNAME=[YOUR_DOCUSIGN_USERNAME]
  2. DOCUSIGN_PASSWORD=[YOUR_DOCUSIGN_PASSWORD]
  3. 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:

  1. $client = DocuSign::create();

Access DocuSign Models:

  1. $signer = DocuSign::signer([
  2. 'name' => 'John Doe',
  3. 'email' => 'Jdoe123@example.com'
  4. ]);

Access DocuSign Api endpoints using get();

  1. DocuSign::get('folders')->callList();

OR

Using the LaravelDocusign\Client class

You can create a new instance of the DocuSign Client with:

  1. $client = new LaravelDocusign\Client;