PHPackages                             nidrax69/yousign-api-laravel - 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. nidrax69/yousign-api-laravel

ActiveLibrary

nidrax69/yousign-api-laravel
============================

Package for using YousignApi with laravel &gt; 7.x

2.0.2(4y ago)112.8kMITPHP

Since Jan 9Pushed 4y ago1 watchersCompare

[ Source](https://github.com/nidrax69/YousignApiLaravel)[ Packagist](https://packagist.org/packages/nidrax69/yousign-api-laravel)[ RSS](/packages/nidrax69-yousign-api-laravel/feed)WikiDiscussions master Synced yesterday

READMEChangelog (6)DependenciesVersions (7)Used By (0)

YouSignApiLaravel
=================

[](#yousignapilaravel)

[![Latest Stable Version](https://camo.githubusercontent.com/34f6042b9c5e7a9b3a8e9012ec4a8049fff72eb1389d22522c2f43cd075b8b85/68747470733a2f2f706f7365722e707567782e6f72672f6e696472617836392f796f757369676e2d6170692d6c61726176656c2f762f737461626c65)](https://packagist.org/packages/nidrax69/yousign-api-laravel)[![Total Downloads](https://camo.githubusercontent.com/7f953ca5cb885f4a838c5a56cc4a1794e5a90ac8f7d44c347b01e69233cac5e4/68747470733a2f2f706f7365722e707567782e6f72672f6e696472617836392f796f757369676e2d6170692d6c61726176656c2f646f776e6c6f616473)](https://packagist.org/packages/nidrax69/yousign-api-laravel)[![Latest Unstable Version](https://camo.githubusercontent.com/2b5e49a3d15631686b977e33f04f715f86f0bddff7395d5e03286e35a6ef00aa/68747470733a2f2f706f7365722e707567782e6f72672f6e696472617836392f796f757369676e2d6170692d6c61726176656c2f762f756e737461626c65)](https://packagist.org/packages/nidrax69/yousign-api-laravel)[![License](https://camo.githubusercontent.com/b4615cbdd9b7ca629571c9c738c637a12f0d05cabdae4e91a2f62cbfc067a311/68747470733a2f2f706f7365722e707567782e6f72672f6e696472617836392f796f757369676e2d6170692d6c61726176656c2f6c6963656e7365)](https://packagist.org/packages/nidrax69/yousign-api-laravel)[![Donate](https://camo.githubusercontent.com/604e3db9c8751116b3f765aad0353ec7ded655bbe8aaacbc38d8c4a6b784b3ed/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446f6e6174652d50617950616c2d677265656e2e737667)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=D93LM77M9EWCS)

It's a library for Laravel 7 and PHP7 Not tested on previous version.

Library to use YouSign API from doc (dev.yousign.com) with Laravel

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

[](#installation)

Install using composer

Now require the lib

```
composer require nidrax69/yousign-api-laravel
```

Add provider in config.app

```
'providers' => [
    Nidrax69\YousignApiLaravel\YousignApiLaravelServiceProvider::class,
];

'aliases' => [
    'YousignApiLaravel' => Nidrax69\YousignApiLaravel\Facade\YousignApiLaravel::class,
];
```

Complete informations inside your .env file (contact YouSign to get Credentials) and then

```
YOUSIGN_KEY=
YOUSIGN_API_URL=
```

Usage
-----

[](#usage)

Create Procedure with webhooks , files and members

```
use Nidrax69\YousignApiLaravel\YousignApiLaravel;

class DocumentController extends Controller
{

  public function sign(Request $request) {
    $client = new YousignApiLaravel();

    // see all possibilities at https://dev.yousign.com/
    $client->setProcedureKeyValue('name', 'Yousign');
    $client->setProcedureKeyValue('description', 'Description procedure');
    // to set default expiration date to the signature
    $client->setProcedureKeyValue('expiresAt', '2022-04-24');

    // add webhooks
    // you can add different headers
    $webhookUrl = env('API_URL') . 'yousign/';
    $client->addWebhook('member.finished', $webhookUrl . 'signature', 'GET', array(
        "X-Custom-Header" => $type . '-signature',
    ));
    $client->addWebhook('procedure.refused', $webhookUrl . 'refused', 'GET', array(
        "X-Custom-Header" => $type . '-signature',
    ));
    // procedure created but not ready for signature
    $procedure = $client->createProcedure();

    // Allows you to define the content of SMS. {{code}} will be used to define the security code managed by Yousign.
    // up to 150 characters
    $client->addSmsContent('DIGITAL SIGNATURE - {{code}} is your security code to sign your documents.');

    // add files to procedure
    $file = $client->addFile($namefile, $document->url, $procedure['id']);

    // add member to sign the documents
    $member = $client->addMember($user->firstname, $user->lastname, $user->email, $user->phone, $procedure['id']);

    // to determine the last page of your file
    $lastPageNumber = $this->getNumPagesInPDF($document->url);

    $reason = "Signed by " . $user->firstname . " " . $user->lastname . " (Yousign)";

    // to determine position see https://placeit.yousign.fr/
    $fileObject = $client->addFileObject($file['id'], $member['id'], $position, $reason, $lastPageNumber);

    // start the signature process
    $client->launchProcedure($procedure['id']);
  }
}
```

Find the complete integration in source file

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 91.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 ~307 days

Recently: every ~365 days

Total

6

Last Release

1506d ago

Major Versions

0.0.2 → 1.0.02018-03-30

1.0.0 → 2.0.02022-03-27

### Community

Maintainers

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

---

Top Contributors

[![vincedenice](https://avatars.githubusercontent.com/u/10536873?v=4)](https://github.com/vincedenice "vincedenice (42 commits)")[![nidrax69](https://avatars.githubusercontent.com/u/17824045?v=4)](https://github.com/nidrax69 "nidrax69 (4 commits)")

---

Tags

yousign

### Embed Badge

![Health badge](/badges/nidrax69-yousign-api-laravel/health.svg)

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

PHPackages © 2026

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