Download the PHP package helori/php-sign without Composer

On this page you can find all versions of the php package helori/php-sign. 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 php-sign

php-sign

PHP-SIGN is a single electronic signature SDK which works with most common electronic signature services (Universign, Docusign, Yousign...) It allows you to integrate your prefered electronic signature solution without worrying about how you will have to switch from one to another in the future. Besides, it brings you a clean and easy way to plug your signature service in your app (probably easier than integrating it directly). It also removes you the hassle of maintaining that part of the code.

Installation and setup

Install the package by running:

How does it work ?

To launch an electronic signature process (also refered as a "transaction"), you must define some common elements :

These elements are parts of a transaction "scenario" which defines how the signature process should run. Once your scenario is defined, a "requester" will send it to the signature service and return a "transaction" object. The requester must be configured with the secret credentials of your signature service user account.

Usage

Create a Transaction

The first step is to define a scenario to create a transaction.

Retrieve a Transaction

After creating a transaction, you probably need to store its transaction ID. It allows you to retrieve all information about a transaction : status, signers info, documents... You may at a minimum save the ID in your database.

The transaction ID is a string, but doesn't have a standard format. It is the unique ID used by your signature service, and thus its length and pattern may vary. For example, it can be a Docusign "envelope ID", or a Yousign "procedure ID", or a Universign "transaction ID"...

Here is an example of how to retrieve a transaction from its ID :

Webhooks

The code above allows you to check the transaction status at any time. But polling servers to update your transactions may not be the best idea ! Instead, you can take advantage of the webhooks sent by the signature services.

All webhooks will be sent to the status URL defined in your scenario.

This URL must correspond to a route defined in your application. The signature service (used behind the scene) will call your status URL with its own set of parameters. You can then use the Webhook element to convert the received request to a standard "webhook object". It will be automatically populated with the request params.

Download the signed documents

Once the documents have been signed, the transaction status is set to Transaction::STATUS_COMPLETED. You can download the signed documents by simply calling the getDocuments() method :

Further integration...

There are other options you may want to use : sms authentication, return urls, metadata... Feel free to look at the source code (especially the "Elements“ folder) which is well documented.

Help & Support

Any question or contribution is welcome :)


All versions of php-sign with dependencies

PHP Build Version
Package Version
Requires nesbot/carbon Version *
phpxmlrpc/phpxmlrpc Version 4.*
firebase/php-jwt Version ^6.10|^7.0
guzzlehttp/guzzle Version ^7.5|^8.0
symfony/dotenv Version ^6.2|^7.0|^8.0
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 helori/php-sign contains the following files

Loading the files please wait ...