PHPackages                             kevinem/adobe-sign-php - 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. kevinem/adobe-sign-php

ActiveLibrary[API Development](/categories/api)

kevinem/adobe-sign-php
======================

Adobe Sign PHP Client

0.2.0(8y ago)1958.3k↓63.6%18[9 issues](https://github.com/kevinem/adobe-sign-php/issues)1MITPHPPHP &gt;=5.6.0CI failing

Since Jul 19Pushed 6y ago4 watchersCompare

[ Source](https://github.com/kevinem/adobe-sign-php)[ Packagist](https://packagist.org/packages/kevinem/adobe-sign-php)[ RSS](/packages/kevinem-adobe-sign-php/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (4)Versions (4)Used By (1)

Adobe Sign PHP
==============

[](#adobe-sign-php)

[![Latest Stable Version](https://camo.githubusercontent.com/87289d17f6178a59be4f22f43e4d5450fe98cf9cce2ef2649c51300a20852fd2/68747470733a2f2f706f7365722e707567782e6f72672f6b6576696e656d2f61646f62652d7369676e2d7068702f762f737461626c653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/kevinem/adobe-sign-php)[![License](https://camo.githubusercontent.com/7eb0ad5447e4474d16b9953a85433c188af84583a53ac72a861aeeabe66ec09e/68747470733a2f2f706f7365722e707567782e6f72672f6b6576696e656d2f61646f62652d7369676e2d7068702f6c6963656e73653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/kevinem/adobe-sign-php)[![Build Status](https://camo.githubusercontent.com/8fed84e0a5fda0adc931d51e67595d137d95a0a7ea9142fe06b548c492b8bf58/68747470733a2f2f7472617669732d63692e6f72672f6b6576696e656d2f61646f62652d7369676e2d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/kevinem/adobe-sign-php)

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

[](#installation)

To install, use composer:

```
composer require kevinem/adobe-sign-php

```

Documentation
-------------

[](#documentation)

### Example Usage

[](#example-usage)

```
session_start();

$provider = new KevinEm\OAuth2\Client\AdobeSign([
    'clientId'          => 'your_client_id',
    'clientSecret'      => 'your_client_secret',
    'redirectUri'       => 'your_callback',
    'scope'             => [
          'scope1:type',
          'scope2:type'
    ]
]);

$adobeSign = new AdobeSign($provider);

if (!isset($_GET['code'])) {
    $authorizationUrl = $adobeSign->getAuthorizationUrl();
    $_SESSION['oauth2state'] = $provider->getState();
    header('Location: ' . $authorizationUrl);
} elseif (empty($_GET['state']) || ($_GET['state'] !== $_SESSION['oauth2state'])) {
    unset($_SESSION['oauth2state']);
    exit('Invalid state');
} else {
    $accessToken = $adobeSign->getAccessToken($_GET['code']);
    $adobeSign->setAccessToken($accessToken->getToken());
    $adobeSign->createAgreement([
        'documentCreationInfo' => [
            'fileInfos'         => [
                'libraryDocumentId' => 'your_library_document_id'
            ],
            'name'              => 'My Document',
            'signatureType'     => 'ESIGN',
            'recipientSetInfos' => [
                'recipientSetMemberInfos' => [
                    'email' => 'test@gmail.com'
                ],
                'recipientSetRole'        => [
                    'SIGNER'
                ]
            ],
            'mergeFieldInfo'    => [
                [
                    'fieldName'    => 'Name',
                    'defaultValue' => 'John Doe'
                ]
            ],
            'signatureFlow'     => 'SENDER_SIGNATURE_NOT_REQUIRED'
        ]
    ]);
}
```

### Generate Multipart Stream for transient document upload

[](#generate-multipart-stream-for-transient-document-upload)

Thanks to @trip-somers for the [solution](https://github.com/kevinem/adobe-sign-php/issues/1).

```
$file_path = '/path/to/local/document';

$file_stream = Psr7\FnStream::decorate(Psr7\stream_for(file_get_contents($file_path)), [
    'getMetadata' => function() use ($file_path) {
        return $file_path;
    }
]);

$multipart_stream   = new Psr7\MultipartStream([
    [
        'name'     => 'File',
        'contents' => $file_stream
    ]
]);

$transient_document = $adobeSign->uploadTransientDocument($multipart_stream);
```

License
-------

[](#license)

The MIT License (MIT) Copyright (c) 2016 Kevin Em

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

31

—

LowBetter than 65% of packages

Maintenance11

Infrequent updates — may be unmaintained

Popularity37

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

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 ~199 days

Total

3

Last Release

3273d ago

PHP version history (2 changes)0.1.0PHP &gt;=5.5.0

0.1.1PHP &gt;=5.6.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/9222632?v=4)[Kevin Em](/maintainers/kevinem)[@kevinem](https://github.com/kevinem)

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kevinem-adobe-sign-php/health.svg)

```
[![Health](https://phpackages.com/badges/kevinem-adobe-sign-php/health.svg)](https://phpackages.com/packages/kevinem-adobe-sign-php)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.5M7](/packages/exsyst-swagger)[lucasdotvin/laravel-soulbscription

A straightforward interface to handle subscriptions and features consumption.

709209.3k](/packages/lucasdotvin-laravel-soulbscription)

PHPackages © 2026

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