Download the PHP package mekari/esign-api-php without Composer

On this page you can find all versions of the php package mekari/esign-api-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package 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

Run the following command to install the 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

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

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:

Next Steps

After initializing the EsignApiClient, you can use its methods to interact with the eSign API. For example, you can use the auth method to get an instance of the Auth class, which provides methods for getting user authentication tokens and refresh tokens:

Authorization

Get Auth Token

The getUserAuthToken method is part of the Auth class. It's used to get a user authentication token from the eSign API.

Parameters

The method takes one parameter:

Return Value

If the request is successful, the method returns an associative array containing the response data from the API. If the request fails, it throws an exception with an error message.

Usage

Here's an example of how to use the getUserAuthToken method:

Get Refresh Token

The getRefreshToken method is part of the Auth class. It's used to get a new access token from the eSign API using a refresh token.

Parameters

The method takes one parameter:

Return Value

If the request is successful, the method returns an associative array containing the response data from the API. If the request fails, it throws an exception with an error message.

Usage

Here's an example of how to use the getRefreshToken method:

Global Sign

Request Global Sign

The requestGlobalSign method is part of the GlobalSign class. It's used to request a global sign for a document from the eSign API.

Parameters

The method takes the following parameters:

Return Value

If the request is successful, the method returns an associative array containing the response data from the API. If the request fails, it throws an exception with an error message.

Usage

Here's an example of how to use the requestGlobalSign method:

PSRE Sign

Request PSRE Sign

The requestPsreSign method is part of the PsreSign class. It's used to request a PSRE sign for a document from the eSign API.

Parameters

The method takes the following parameters:

Return Value

If the request is successful, the method returns an associative array containing the response data from the API. If the request fails, it throws an exception with an error message.

Usage

Here's an example of how to use the requestPsreSign method:

Generate Signing URL

The generateSigningUrl method is part of the PsreSign class. It's used to generate a signing URL for a document from the eSign API.

Parameters

The method takes the following parameters:

Return Value

If the request is successful, the method returns an associative array containing the response data from the API. If the request fails, it throws an exception with an error message.

Usage

Here's an example of how to use the generateSigningUrl method:

Stamping

Stamp

The stamp method is part of the Stamping class. It's used to stamp a document with an annotation from the eSign API.

Parameters

The method takes the following parameters:

Return Value

If the request is successful, the method returns an associative array containing the response data from the API. If the request fails, it throws an exception with an error message.

Usage

Here's an example of how to use the stamp method:

Document

Get Document List

The getDocumentList method is part of the Document class. It's used to get a list of documents from the eSign API.

Parameters

The method takes the following parameters:

Return Value

If the request is successful, the method returns an associative array containing the response data from the API. If the request fails, it throws an exception with an error message.

Usage

Here's an example of how to use the getDocumentList method:

Get Document Detail

The getDocumentDetail method is part of the Document class. It's used to get the details of a specific document from the eSign API.

Parameters

The method takes the following parameters:

Return Value

If the request is successful, the method returns an associative array containing the response data from the API. If the request fails, it throws an exception with an error message.

Usage

Here's an example of how to use the getDocumentDetail method:

Download Document

The downloadDocument method is part of the Document class. It's used to download a specific document from the eSign API.

Parameters

The method takes the following parameters:

Return Value

If the request is successful, the method returns the downloaded document. If the request fails, it throws an exception with an error message.

Usage

Here's an example of how to use the downloadDocument method:

Resend Document

The resendDocument method is part of the Document class. It's used to resend a specific document from the eSign API.

Parameters

The method takes the following parameters:

Return Value

If the request is successful, the method returns the response data from the API. If the request fails, it throws an exception with an error message.

Usage

Here's an example of how to use the resendDocument method:

Void Document

The voidDocument method is part of the Document class. It's used to void a specific document in the eSign API.

Parameters

The method takes the following parameters:

Return Value

If the request is successful, the method returns the response data from the API. If the request fails, it throws an exception with an error message.

Usage

Here's an example of how to use the voidDocument method:

Delete Document

The deleteDocument method is part of the Document class. It's used to delete a specific document from the eSign API.

Parameters

The method takes the following parameters:

Return Value

If the request is successful, the method returns the response data from the API. If the request fails, it throws an exception with an error message.

Usage

Here's an example of how to use the deleteDocument method:

Auto Sign

Create Auto Sign

The createAutoSign method is part of the AutoSign class. It's used to create an auto sign request in the eSign API.

Parameters

The method takes the following parameters:

Return Value

If the request is successful, the method returns the response data from the API. If the request fails, it throws an exception with an error message.

Usage

Here's an example of how to use the createAutoSign method:

Update Auto Sign

The updateAutoSign method is part of the AutoSign class. It's used to update an auto sign request in the eSign API.

Parameters

The method takes the following parameters:

Return Value

If the request is successful, the method returns the response data from the API. If the request fails, it throws an exception with an error message.

Usage

Here's an example of how to use the updateAutoSign method:

Delete Auto Sign

The deleteAutoSign method is part of the AutoSign class. It's used to delete an auto sign request in the eSign API.

Parameters

The method takes the following parameters:

Return Value

If the request is successful, the method returns true. If the request fails, it throws an exception with an error message.

Usage

Here's an example of how to use the deleteAutoSign method:

Detail Auto Sign

The detailAutoSign method is part of the AutoSign class. It's used to get the details of an auto sign request from the eSign API.

Parameters

The method takes the following parameters:

Return Value

If the request is successful, the method returns an associative array containing the response data from the API. If the request fails, it throws an exception with an error message.

Usage

Here's an example of how to use the detailAutoSign method:

List Auto Sign

The listAutoSign method is part of the AutoSign class. It's used to get a list of auto sign requests from the eSign API.

Parameters

The method takes the following parameters:

Return Value

If the request is successful, the method returns an associative array containing the response data from the API. If the request fails, it throws an exception with an error message.

Usage

Here's an example of how to use the listAutoSign method:


All versions of esign-api-php with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
guzzlehttp/guzzle Version ^7.4
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package mekari/esign-api-php contains the following files

Loading the files please wait ....