All Projects → docusign → Docusign Php Client

docusign / Docusign Php Client

Licence: mit
The Official DocuSign PHP Client Library used to interact with the eSign REST API. Send, sign, and approve documents using this client.

The Official DocuSign PHP Client

Build status

Requirements

Compatibility

  • PHP 7.4+

Note

This open-source SDK is provided for cases where you would like to make additional changes that the SDK does not provide out-of-the-box. If you simply want to use the SDK with any of the examples shown in the Developer Center, follow the installation instructions below.

Installation

Composer:

  1. In your PHP console , type:
    Composer require docusign/esign-client;
  2. To use the package automatically, add to Composer's Autoload file:
    require_once('vendor/autoload.php');

Manual install:

  1. Download or clone this repository.
  2. Bind the PHP SDK to your server or place it in a static location.
    1. To bind to your server, edit the init.php file. Add:
      require_once('/path/to/docusign-esign-client/autoload.php');
    2. To bind to single pages: In your PHP file that will utilize the PHP SDK, add:
      `require_once('/path/to/docusign-esign-client/autoload.php');
  3. If you are using Composer V2 and get the error 'namespace cannot be found', add the following class mapping in composer.json file.
  4. "autoload": { "classmap": [ "/path/to/docusign-esign-client/src" ] }

Dependencies

This client has the following external dependencies:

Code Examples

Launchers

DocuSign provides a sample application code referred to as a Launcher. The Launcher contains a set of 31 common use cases and associated source files. These examples use either DocuSign's Authorization Code Grant or JSON Web Tokens (JWT) flows.

Proof-of-concept applications

If your goal is to create a proof-of-concept application, DocuSign provides a set of Quick Start examples. The Quick Startexamples are meant to be used with DocuSign's OAuth Token Generator, which will allow you to generate tokens for the Demo/Sandbox environment only. These tokens last for eight hours and will enable you to build your proof-of-concept application without the need to fully implement an OAuth solution.

OAuth Implementations

For details regarding which type of OAuth grant will work best for your DocuSign integration, see the REST API Authentication Overview guide located on the DocuSign Developer Center.

For security purposes, DocuSign recommends using the Authorization Code Grant flow.

Support

Log issues against this client through GitHub. We also have an active developer community on Stack Overflow.

License

The DocuSign PHP Client is licensed under the MIT License.

Additional Resources

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].