PHPackages                             timothecrespy/yousign-api-php-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. [HTTP &amp; Networking](/categories/http)
4. /
5. timothecrespy/yousign-api-php-client

AbandonedArchivedLibrary[HTTP &amp; Networking](/categories/http)

timothecrespy/yousign-api-php-client
====================================

A PHP client library for accessing Yousign REST APIs (https://yousign.com/en-uk/api)

1.3.1(6y ago)01.2k1MITPHPPHP &gt;=7.2.0

Since Mar 3Pushed 6y ago1 watchersCompare

[ Source](https://github.com/TimotheCrespy/yousign-api-php-client)[ Packagist](https://packagist.org/packages/timothecrespy/yousign-api-php-client)[ Docs](https://www.timothecrespy.fr)[ RSS](/packages/timothecrespy-yousign-api-php-client/feed)WikiDiscussions master Synced today

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

yousign-api-php-client
======================

[](#yousign-api-php-client)

[![Latest Version on Packagist](https://camo.githubusercontent.com/9f7c74662760d891cd0d4b20e37a141e2da34cdf12388474a3fa3ce9152f848c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f74696d6f7468656372657370792f796f757369676e2d6170692d7068702d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/timothecrespy/yousign-api-php-client)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/68f1855fd140d04af282a03c68a83ceffeb66a839cc0ee38e3024375570a35e2/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f74696d6f7468656372657370792f796f757369676e2d6170692d7068702d636c69656e742f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/timothecrespy/yousign-api-php-client)[![Coverage Status](https://camo.githubusercontent.com/08b8f77164b5aaaccfe77c1e1b82899f1c76183dfba7789e27efe504b4c8f37b/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f74696d6f7468656372657370792f796f757369676e2d6170692d7068702d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/timothecrespy/yousign-api-php-client/code-structure)[![Quality Score](https://camo.githubusercontent.com/25970284343746e6c92ae08eddb1197709ee544949f5797ec40353462cead1e1/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f74696d6f7468656372657370792f796f757369676e2d6170692d7068702d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/timothecrespy/yousign-api-php-client)[![Total Downloads](https://camo.githubusercontent.com/58f7284282f93129e98cf690f1333e082dd4e34d64163cc17ab8685c6aa19473/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f74696d6f7468656372657370792f796f757369676e2d6170692d7068702d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/timothecrespy/yousign-api-php-client)

Yousign REST API Client.

PRs are of course highly appreciated, as well as improvement suggestions!

Structure
---------

[](#structure)

```
src/
tests/

```

Install
-------

[](#install)

Via Composer

```
$ composer require timothecrespy/yousign-api-php-client
```

Usage
-----

[](#usage)

### Note

[](#note)

For testing, and obviously for production, an internet connexion is required.

### Framework agnostic

[](#framework-agnostic)

```
use TimotheCrespy\YousignClient;

// It is recommended to store these values in a .env or equivalent file
const YOUSIGN_PRODUCTION_API_URL = 'https://api.yousign.com';
const YOUR_PRODUCTION_API_KEY = '[YOUR_PRODUCTION_API_KEY]';

$yousignClient = new YousignClient([
    'api_url' => self::YOUSIGN_PRODUCTION_API_URL,
    'api_key' => self::YOUR_PRODUCTION_API_KEY
]);
```

As the Yousign production API is not free, you might want to test it, with the staging environment:

```
use TimotheCrespy\YousignClient;

// It is recommended to store these values in a .env or equivalent file
const YOUSIGN_STAGING_API_URL = 'https://staging-api.yousign.com';
const YOUR_STAGING_API_KEY = '[YOUR_STAGING_API_KEY]';

$yousignClient = new YousignClient([
    'api_url' => self::YOUSIGN_STAGING_API_URL,
    'api_key' => self::YOUR_STAGING_API_KEY
]);
```

### Laravel

[](#laravel)

Requirement : version `6.*` minimum

```
// If you are using Laravel (https://github.com/laravel/laravel), you could specify the default Laravel logger:
$loggerInstance = Illuminate\Support\Facades\Log::getLogger();
$yousignClient->setLogger($loggerInstance);

$yousignClient->getUsers();
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Testing
-------

[](#testing)

All this package is based on the notion that the Yousign's `staging` environment is strictly similar to the `production` environment. Hence the tests based on this `staging` environment. Therefore, the API is not stubbed, as this `staging` environment is free and without any restriction.

Testing for a PR is however done this way:

```
$ composer test
```

or

```
$ ./vendor/bin/phpcs
$ ./vendor/bin/phpunit
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE\_OF\_CONDUCT](CODE_OF_CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- Timothé Crespy
- [All Contributors](https://github.com/TimotheCrespy/yousign-api-php-client/graphs/contributors)

### Special thanks

[](#special-thanks)

- [Julien Cauvin](https://github.com/jucau)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

2

Last Release

2259d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ce60a98ca58151235617437bca20c057825248f345cac2faa155acf11244e6f5?d=identicon)[TimotheCrespy](/maintainers/TimotheCrespy)

---

Top Contributors

[![TimotheCrespy](https://avatars.githubusercontent.com/u/3188911?v=4)](https://github.com/TimotheCrespy "TimotheCrespy (28 commits)")

---

Tags

apirestyousign

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/timothecrespy-yousign-api-php-client/health.svg)

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

###  Alternatives

[xeroapi/xero-php-oauth2

Xero official PHP SDK for oAuth2 generated with OpenAPI spec 3

1054.3M14](/packages/xeroapi-xero-php-oauth2)[xendit/xendit-php

Xendit PHP SDK

189730.6k6](/packages/xendit-xendit-php)[huaweicloud/huaweicloud-sdk-php

Huawei Cloud SDK for PHP

1829.2k2](/packages/huaweicloud-huaweicloud-sdk-php)[onesignal/onesignal-php-api

A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com

34170.2k2](/packages/onesignal-onesignal-php-api)[ory/hydra-client

Documentation for all of Ory Hydra's APIs.

17435.9k](/packages/ory-hydra-client)[whatarmy/fedex-rest

New FedEx Rest API wrapper

2440.5k1](/packages/whatarmy-fedex-rest)

PHPackages © 2026

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