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

ActiveLibrary[API Development](/categories/api)

bda-matt/adobe-sign-php
=======================

0.2.1(5y ago)0501↓74.4%MITPHPPHP &gt;=5.6.0

Since Jul 19Pushed 5y agoCompare

[ Source](https://github.com/BDA-Matt/adobe-sign-php)[ Packagist](https://packagist.org/packages/bda-matt/adobe-sign-php)[ RSS](/packages/bda-matt-adobe-sign-php/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (4)Versions (4)Used By (0)

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 BDA-Matt/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

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity50

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

Total

4

Last Release

1988d ago

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

0.1.1PHP &gt;=5.6.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/3c3c53404a4e9e7233c590e90ae70bcf6e99d1997cef0e433920f2947b1fc7b2?d=identicon)[BDA-Matt](/maintainers/BDA-Matt)

---

Top Contributors

[![BDA-Matt](https://avatars.githubusercontent.com/u/71556742?v=4)](https://github.com/BDA-Matt "BDA-Matt (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

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