PHPackages                             signnow/api-php-sdk - 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. signnow/api-php-sdk

ActiveLibrary[API Development](/categories/api)

signnow/api-php-sdk
===================

Library to communicate with SignNow API

v3.5.2(2mo ago)11138.0k↓26.9%10[9 issues](https://github.com/signnow/SignNowPHPSDK/issues)MITPHPPHP ^8.2

Since Oct 23Pushed 2mo ago4 watchersCompare

[ Source](https://github.com/signnow/SignNowPHPSDK)[ Packagist](https://packagist.org/packages/signnow/api-php-sdk)[ RSS](/packages/signnow-api-php-sdk/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (7)Versions (47)Used By (0)

signNow API PHP SDK
===================

[](#signnow-api-php-sdk)

v3.5.2
------

[](#v352)

[![PHP Version](https://camo.githubusercontent.com/9ec48283e74173700862dd5af0614f7dd39e024208970c8e14f78e04f3acdea6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f737570706f727465642d2533453d382e322d626c75653f6c6f676f3d706870)](https://php.net/)

### Requirements

[](#requirements)

- PHP 8.2 or higher
- composer
- cURL extension

### Installation

[](#installation)

Get SDK code via composer

```
composer require signnow/api-php-sdk:v3.5.2
```

or via git

```
git clone git@github.com:signnow/SignNowPHPSDK.git
```

Install dependencies

```
make install
```

### Configuration

[](#configuration)

Copy `.env.example` to `.env` and fill your credentials in the required values

```
cp .env.example .env
```

### Run tests

[](#run-tests)

To run tests you need to have a valid `.env.test` file with credentials for testing. If you don't have it, you can create it by copying the `.env.test.dist` file and renaming it to `.env.test`. However, the file will be created automatically if you just run test execution with the following commands:

```
## Run mock server locally
make mock-up
## Run all the tests
make tests
## Run a single test by specified argument
make test T=Document/DocumentTest.php
```

Mock server will be available at `http://0.0.0.0:8086`.

### Usage

[](#usage)

To start using the SDK, you need to create a new instance of the SDK API client and authenticate it using the credentials from the `.env` file.

```
require_once __DIR__ . '/vendor/autoload.php';

use SignNow\ApiClient;
use SignNow\Api\Document\Request\DocumentGet;
use SignNow\Exception\SignNowApiException;
use SignNow\Sdk;

$sdk = new Sdk();

try {
    // Method authenticate() will use the credentials from the .env file
    // and create a new bearer token for further requests
    $apiClient = $sdk->build()
        ->authenticate()
        ->getApiClient();
    // Now, you are ready to use the API client to send requests

    // if you want to keep the token, you can use the following code
    $bearerToken = $sdk->actualBearerToken();
    // or
    $bearerToken = $apiClient->getBearerToken();
} catch (SignNowApiException $e) {
    echo $e->getMessage();
}
```

If you have already received a bearer token and wish to reuse it, then the following API client initialization scheme will be useful:

```
require_once __DIR__ . '/vendor/autoload.php';

use SignNow\ApiClient;
use SignNow\Api\Document\Request\DocumentGet;
use SignNow\Core\Token\BearerToken;
use SignNow\Exception\SignNowApiException;
use SignNow\Sdk;

$sdk = new Sdk();

try {
    $token = 'YOUR_TOKEN_HERE';
    $apiClient = $sdk->build()
        ->withBearerToken(new BearerToken($token, '', 0))
        ->getApiClient();
    // Now, you are ready to use the API client to send requests
} catch (SignNowApiException $e) {
    echo $e->getMessage();
}
```

Example of sending a request to get a document by id:

```
require_once __DIR__ . '/vendor/autoload.php';

use SignNow\ApiClient;
use SignNow\Api\Document\Request\DocumentGet;
use SignNow\Exception\SignNowApiException;
use SignNow\Sdk;

$sdk = new Sdk();

try {
    // Instantiate the API client
    $apiClient = $sdk->build()
        ->authenticate()
        ->getApiClient();

    // Prepare a request to get a document by id
    $documentId = 'e896ec9311a74a8a8ee9faff7049446fe452e461';
    $request = new DocumentGet();
    $request->withDocumentId($documentId);

    // Send the request and get the response
    $response = $apiClient->send($request);
} catch (SignNowApiException $e) {
    echo $e->getMessage();
}
```

### Examples

[](#examples)

You can find more examples of API usage in the [`examples`](./examples) directory.

###  Health Score

57

—

FairBetter than 98% of packages

Maintenance68

Regular maintenance activity

Popularity42

Moderate usage in the ecosystem

Community19

Small or concentrated contributor base

Maturity83

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 58.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~52 days

Total

45

Last Release

82d ago

Major Versions

v1.5.5 → v2.2.52022-11-24

v1.5.6 → v2.2.62023-03-01

v1.5.7 → v2.2.72023-03-27

v1.5.8 → v2.2.92023-12-15

1.x-dev → v3.0.02024-07-16

PHP version history (2 changes)v1.0.0PHP &gt;=7.1

v3.0.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/514a6936435db257a1f5c01d30a2fe7a0ee2882eb6115cc21f18750fb073232e?d=identicon)[SignNow](/maintainers/SignNow)

---

Top Contributors

[![JiSoft](https://avatars.githubusercontent.com/u/4632714?v=4)](https://github.com/JiSoft "JiSoft (49 commits)")[![Vasyl-Kravets](https://avatars.githubusercontent.com/u/56153881?v=4)](https://github.com/Vasyl-Kravets "Vasyl-Kravets (15 commits)")[![falgonua](https://avatars.githubusercontent.com/u/38418746?v=4)](https://github.com/falgonua "falgonua (12 commits)")[![PetrVakulenko](https://avatars.githubusercontent.com/u/24455335?v=4)](https://github.com/PetrVakulenko "PetrVakulenko (3 commits)")[![serhii-kashuba](https://avatars.githubusercontent.com/u/83700369?v=4)](https://github.com/serhii-kashuba "serhii-kashuba (2 commits)")[![kugaievskyi-airslate](https://avatars.githubusercontent.com/u/101642176?v=4)](https://github.com/kugaievskyi-airslate "kugaievskyi-airslate (2 commits)")[![raman-liavitski-airslate](https://avatars.githubusercontent.com/u/182664427?v=4)](https://github.com/raman-liavitski-airslate "raman-liavitski-airslate (1 commits)")

---

Tags

api-clientdocumentselectronic-signaturesesignesignaturepackagesdksignnowsignnow-apiapiphp-sdksignnow

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/signnow-api-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/signnow-api-php-sdk/health.svg)](https://phpackages.com/packages/signnow-api-php-sdk)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[fschmtt/keycloak-rest-api-client-php

PHP client to interact with Keycloak's Admin REST API.

4684.7k2](/packages/fschmtt-keycloak-rest-api-client-php)[rekalogika/mapper

An object mapper for PHP and Symfony. Maps an object to another object. Primarily used for transforming an entity to a DTO and vice versa.

3847.7k1](/packages/rekalogika-mapper)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
