PHPackages                             marshmallow/signrequest-client - 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. marshmallow/signrequest-client

ActiveLibrary[API Development](/categories/api)

marshmallow/signrequest-client
==============================

Official PHP client for SignRequest.com (https://signrequest.com)

1.0.0(4y ago)341.1k↑54.5%3MITPHPPHP ^7.2.5 || ^8.0CI failing

Since Jul 13Pushed 3w ago1 watchersCompare

[ Source](https://github.com/marshmallow-packages/signrequest-php-client)[ Packagist](https://packagist.org/packages/marshmallow/signrequest-client)[ Docs](https://signrequest.com/)[ RSS](/packages/marshmallow-signrequest-client/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (2)Dependencies (4)Versions (4)Used By (0)

[![marshmallow.](https://camo.githubusercontent.com/f5450f299f5713ce2f04dd5a1ba7ce9960ed4568b3574e4c4ee3cddc75477253/68747470733a2f2f6d617273686d616c6c6f772e6465762f63646e2f6d656469612f6c6f676f2d7265642d3233377834362e706e67 "marshmallow.")](https://camo.githubusercontent.com/f5450f299f5713ce2f04dd5a1ba7ce9960ed4568b3574e4c4ee3cddc75477253/68747470733a2f2f6d617273686d616c6c6f772e6465762f63646e2f6d656469612f6c6f676f2d7265642d3233377834362e706e67)

SignRequest PHP Client
======================

[](#signrequest-php-client)

[![Latest Version on Packagist](https://camo.githubusercontent.com/545333e8598d62804765d4c5cb786585dce449bfe117f629fd8bec2eaeabb659/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d617273686d616c6c6f772f7369676e726571756573742d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/marshmallow/signrequest-client)[![Total Downloads](https://camo.githubusercontent.com/d7d577a50f758bfa141ae8681ff83980149feb757a53aaa3a8e3bd6a932c5747/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d617273686d616c6c6f772f7369676e726571756573742d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/marshmallow/signrequest-client)[![License](https://camo.githubusercontent.com/9f382fefc7b1973b814daa83e0f5a9158727f48b9a882569e4faa762866180e5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6d617273686d616c6c6f772f7369676e726571756573742d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/marshmallow/signrequest-client)

Official PHP client for [SignRequest.com](https://signrequest.com) — send documents for digital signing, manage templates, teams and webhooks through the SignRequest REST API.

> **Why this fork?** This is a published fork of [`SignRequest/signrequest-php-client`](https://github.com/SignRequest/signrequest-php-client), republished so it can be installed on PHP 8+ projects. We opened a pull request against the original package but couldn't wait for it to be processed. Once the upstream package supports PHP 8+, this fork will be removed.

This is a plain PHP SDK generated with [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) on top of [Guzzle](https://github.com/guzzle/guzzle). It is framework-agnostic — there is no Laravel service provider, config publishing or facade.

Requirements
------------

[](#requirements)

- PHP `^7.2.5 || ^8.0`
- Extensions: `ext-curl`, `ext-json`, `ext-mbstring`
- [`guzzlehttp/guzzle`](https://github.com/guzzle/guzzle) `^7.3`

Installation
------------

[](#installation)

Install the package via Composer:

```
composer require marshmallow/signrequest-client
```

The package is autoloaded under the `SignRequest\` namespace (PSR-4). If you are not using Composer's autoloader yet, require it:

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

Authentication
--------------

[](#authentication)

All requests are authenticated with a SignRequest API token, sent as an `Authorization: Token ` header. You can find your token in your SignRequest account settings.

Configure it once on the shared `Configuration` instance:

```
$config = SignRequest\Configuration::getDefaultConfiguration()
    ->setApiKey('Authorization', 'YOUR_API_KEY')
    ->setApiKeyPrefix('Authorization', 'Token');
```

The default API base URL is `https://signrequest.com/api/v1`. You can override it with `$config->setHost('https://...')` if needed.

Usage
-----

[](#usage)

Each resource has its own API class under `SignRequest\Api`. Instantiate it with a Guzzle client and your configured `Configuration`, then call the typed methods. Example — creating a document:

```
