PHPackages                             samurayjedi/laravel-docusign - 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. samurayjedi/laravel-docusign

ActiveLibrary[API Development](/categories/api)

samurayjedi/laravel-docusign
============================

Docusign laravel integration as middleware.

v1.0(1y ago)09GPL-3.0-or-laterPHP

Since Oct 7Pushed 1y ago1 watchersCompare

[ Source](https://github.com/samurayjedi/laravel-docusign)[ Packagist](https://packagist.org/packages/samurayjedi/laravel-docusign)[ RSS](/packages/samurayjedi-laravel-docusign/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (5)Versions (2)Used By (0)

About
-----

[](#about)

Its a package that i have create to make me easier integrate docusign through my projects.

How to install
--------------

[](#how-to-install)

simple as run:

```
composer require samurayjedi/laravel-docusign
```

Configure
---------

[](#configure)

First ensure the .env file exits in your project, then run:

```
php artisan docusign:setup
```

This create the middleware '~/app/Http/Middleware/IsAllowedByDocuSign.php', it redirect to docusign passing as parameter our app integration data and as return url the actual/requested route, if docusing 'consent', redirect to the return url, if is the first time running the app, docusign ask you if you want grant permissions to the 'x' app works with you account, once its done, the future request will be transparent.

In addition, the command add to your '~/bootstrap/app.php' the following lines for register the previous middleware:

```
// ...
->withMiddleware(function (Middleware $middleware) {
    $middleware->appendToGroup('auth.docusign', [
        \App\Http\Middleware\IsAllowedByDocusign::class,
    ]);

    //
})
// ...
```

Important note: the command finds '-&gt;withMiddleware(function (Middleware $middleware) {' coincidence into the file and append, into the brackets, the middleware, in my uses, it works fine every time, but i recommend you backup your '~/bootstrap/app.php' before running the command, if you have made changes to the file.

Futhermore, the artisan command create '~/routes/docusign.php', it contains:

```
Route::middleware(['web', 'auth', 'auth.docusign'])->group(function () {

});
```

Inside i put my routes that need docusign consent (both GET and POST).

Finally and the most important (and boresome) part, the command too puth into your .env file the following lines:

```
DS_CLIENT_ID=Your_integration_key
DS_CLIENT_SECRET=Your_secret_key
DS_AUTHORIZATION_SERVER=account-d.docusign.com
DS_IMPERSONATED_USER_ID=Your_user_ID
DS_PRIVATE_KEY_FILE=private_dev.key
ALLOW_SILENT_AUTHENTICATION=true
DS_BRAND_ID=Your_brand_id
ADMIN_NAMES=samurayjedi,kroqgar
ADMIN_EMAILS=samurayjedi_example@gmail.com,kroqgar_example@gmail.com

```

to get each one, login to you docusign developer account and enter in 'App &amp; Keys':

[![App & Keys](https://github.com/samurayjedi/laravel-docusign/raw/main/how_to/how_to_get_in.png)](https://github.com/samurayjedi/laravel-docusign/blob/main/how_to/how_to_get_in.png)

create a app:

[![App & Keys](https://github.com/samurayjedi/laravel-docusign/raw/main/how_to/create_app.png)](https://github.com/samurayjedi/laravel-docusign/blob/main/how_to/create_app.png)

DS\_CLIENT\_SECRET is found:

[![App & Keys](https://github.com/samurayjedi/laravel-docusign/raw/main/how_to/secret.png)](https://github.com/samurayjedi/laravel-docusign/blob/main/how_to/secret.png)

Create RSA keys pair:

[![App & Keys](https://github.com/samurayjedi/laravel-docusign/raw/main/how_to/rsa1.png)](https://github.com/samurayjedi/laravel-docusign/blob/main/how_to/rsa1.png)

And copy public and private key and put it into a file, put the private key file into '~/storage/docusign/', and change this line with the name of your file:

```
// ...
DS_PRIVATE_KEY_FILE=private_dev.key
// ...

```

For my app to work in local, I had to put all this uris, i don't remember well, but in production i believe i had to change 'localhost' with the domain:

[![App & Keys](https://github.com/samurayjedi/laravel-docusign/raw/main/how_to/uris.png)](https://github.com/samurayjedi/laravel-docusign/blob/main/how_to/uris.png)

Finally, save the changes.

Still missing the DS\_CLIENT\_ID, it is found:

[![App & Keys](https://github.com/samurayjedi/laravel-docusign/raw/main/how_to/ds_client_id.png)](https://github.com/samurayjedi/laravel-docusign/blob/main/how_to/ds_client_id.png)

DS\_IMPERSONATED\_USER\_ID is found:

[![App & Keys](https://github.com/samurayjedi/laravel-docusign/raw/main/how_to/ds_impersonated_user_id.png)](https://github.com/samurayjedi/laravel-docusign/blob/main/how_to/ds_impersonated_user_id.png)

DS\_BRAND\_ID, is required create a brand, got to Brands -&gt; Add Brand and fill the form:

[![App & Keys](https://github.com/samurayjedi/laravel-docusign/raw/main/how_to/get_brand.png)](https://github.com/samurayjedi/laravel-docusign/blob/main/how_to/get_brand.png)

when all its done, copy the brand id:

[![App & Keys](https://github.com/samurayjedi/laravel-docusign/raw/main/how_to/ds_brand_id.png)](https://github.com/samurayjedi/laravel-docusign/blob/main/how_to/ds_brand_id.png)

Its done, docusign its integrated to your app finally!!! (in theory :p)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

584d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6ffaaffac27afdebcca5fe0e7f53dca4c9218c1af0f72c0ba58d2b0d2fb71501?d=identicon)[samurayjedi](/maintainers/samurayjedi)

---

Top Contributors

[![samurayjedi](https://avatars.githubusercontent.com/u/81701394?v=4)](https://github.com/samurayjedi "samurayjedi (13 commits)")

### Embed Badge

![Health badge](/badges/samurayjedi-laravel-docusign/health.svg)

```
[![Health](https://phpackages.com/badges/samurayjedi-laravel-docusign/health.svg)](https://phpackages.com/packages/samurayjedi-laravel-docusign)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[andreaselia/laravel-api-to-postman

Generate a Postman collection automatically from your Laravel API

1.0k586.2k3](/packages/andreaselia-laravel-api-to-postman)[saloonphp/laravel-plugin

The official Laravel plugin for Saloon

765.7M125](/packages/saloonphp-laravel-plugin)[mll-lab/laravel-graphiql

Easily integrate GraphiQL into your Laravel project

683.2M9](/packages/mll-lab-laravel-graphiql)[dcblogdev/laravel-microsoft-graph

A Laravel Microsoft Graph API (Office365) package

168285.5k1](/packages/dcblogdev-laravel-microsoft-graph)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

226102.4k](/packages/erag-laravel-disposable-email)

PHPackages © 2026

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