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 2d 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

22

—

LowBetter than 21% of packages

Maintenance34

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

635d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/81701394?v=4)[Krey Rico](/maintainers/samurayjedi)[@samurayjedi](https://github.com/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

[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M194](/packages/laravel-ai)[illuminate/queue

The Illuminate Queue package.

21332.6M1.6k](/packages/illuminate-queue)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M131](/packages/roots-acorn)[moonshine/moonshine

Laravel administration panel

1.3k253.1k81](/packages/moonshine-moonshine)[laravel/folio

Page based routing for Laravel.

603583.7k33](/packages/laravel-folio)[erag/laravel-lang-sync-inertia

A powerful Laravel package for syncing and managing language translations across backend and Inertia.js (Vue/React/Svelte) frontends, offering effortless localization, auto-sync features, and smooth multi-language support for modern Laravel applications.

4925.3k](/packages/erag-laravel-lang-sync-inertia)

PHPackages © 2026

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