PHPackages                             mekari/esign-api-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. mekari/esign-api-php

ActiveLibrary[API Development](/categories/api)

mekari/esign-api-php
====================

PHP SDK for Mekari Sign API

v1.0.1(2y ago)11931PHPPHP &gt;=8.1

Since Mar 30Pushed 2y ago4 watchersCompare

[ Source](https://github.com/mekari-engineering/esign-api-php)[ Packagist](https://packagist.org/packages/mekari/esign-api-php)[ RSS](/packages/mekari-esign-api-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

esign-api-php
=============

[](#esign-api-php)

The esign-api-php is a PHP library that provides a convenient way to interact with Mekari eSign API. It simplifies the process of integrating eSign functionality into your PHP applications. With this SDK, you can easily create, manage, and sign documents using the eSign API.

Installing the SDK
==================

[](#installing-the-sdk)

Run the following command to install the SDK

```
composer require mekari/esign-api-php
```

Initializing the EsignApiClient SDK
===================================

[](#initializing-the-esignapiclient-sdk)

The `EsignApiClient` class is the main entry point for interacting with the eSign API. Here's how to initialize it:

Prerequisites
-------------

[](#prerequisites)

Before you can initialize the `EsignApiClient`, you need to have the following:

- Client ID: This is the ID of your eSign API client.
- Client Secret: This is the secret of your eSign API client.
- Production Flag: This is a boolean flag indicating whether you're using the production environment. It's optional and defaults to `false`.

Initialization
--------------

[](#initialization)

To initialize the `EsignApiClient`, you need to create a new instance of the `EsignApiClient` class and pass your client ID and client secret to the constructor. If you're using the production environment, you should also pass `true` as the third argument.

Here's an example:

```
