{"id":37015292,"url":"https://github.com/mettle/adobe-sign-php","last_synced_at":"2026-01-14T01:33:06.462Z","repository":{"id":44551142,"uuid":"329014260","full_name":"mettle/adobe-sign-php","owner":"mettle","description":"AdobeSign PHP Client","archived":false,"fork":true,"pushed_at":"2022-02-08T15:20:50.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-28T16:43:32.501Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"kevinem/adobe-sign-php","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mettle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-01-12T14:35:12.000Z","updated_at":"2022-02-08T14:32:21.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/mettle/adobe-sign-php","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mettle/adobe-sign-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mettle%2Fadobe-sign-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mettle%2Fadobe-sign-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mettle%2Fadobe-sign-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mettle%2Fadobe-sign-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mettle","download_url":"https://codeload.github.com/mettle/adobe-sign-php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mettle%2Fadobe-sign-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408569,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T00:40:43.272Z","status":"ssl_error","status_checked_at":"2026-01-14T00:40:42.636Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-14T01:33:05.804Z","updated_at":"2026-01-14T01:33:06.448Z","avatar_url":"https://github.com/mettle.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Adobe Sign PHP\n\nUnofficial PHP SDK for the [Adobe Sign REST API Version 5 Methods](https://secure.na1.adobesign.com/public/docs/restapi/v5)\n\nhttps://acrobat.adobe.com/us/en/sign.html\n\n[![Source Code](https://img.shields.io/badge/source-mettle/adobe--sign--php-blue.svg?style=flat-square)](https://github.com/mettle/adobe-sign-php)\n[![Latest Version](https://img.shields.io/github/release/mettle/adobe-sign-php.svg?style=flat-square)](https://github.com/mettle/adobe-sign-php/releases)\n[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](https://github.com/mettle/adobe-sign-php/blob/master/LICENSE)\n[![Build Status](https://img.shields.io/github/workflow/status/mettle/adobe-sign-php/CI?label=CI\u0026logo=github\u0026style=flat-square)](https://github.com/mettle/adobe-sign-php/actions?query=workflow%3ACI)\n\n## Requirements\n\nThe following versions of PHP are supported:\n\n* PHP 8.1\n* PHP 8.0\n* PHP 7.4\n* PHP 7.3\n\n## Installation\n\nTo install, use composer:\n\n```\ncomposer require mettle/adobe-sign-php\n```\n\n## Documentation\n\nhttps://secure.na1.adobesign.com/public/docs/restapi/v5\n\n### Example Usage\n\n```php\nsession_start();\n\n$provider = new Mettle\\OAuth2\\Client\\AdobeSign([\n    'clientId'          =\u003e 'your_client_id',\n    'clientSecret'      =\u003e 'your_client_secret',\n    'redirectUri'       =\u003e 'your_callback',\n    'scope'             =\u003e [\n          'scope1:type',\n          'scope2:type'\n    ]\n]);\n\n$adobeSign = new AdobeSign($provider);\n\nif (!isset($_GET['code'])) {\n    $authorizationUrl = $adobeSign-\u003egetAuthorizationUrl();\n    $_SESSION['oauth2state'] = $provider-\u003egetState();\n    header('Location: ' . $authorizationUrl);\n} elseif (empty($_GET['state']) || ($_GET['state'] !== $_SESSION['oauth2state'])) {\n    unset($_SESSION['oauth2state']);\n    exit('Invalid state');\n} else {\n    $accessToken = $adobeSign-\u003egetAccessToken($_GET['code']);\n    $adobeSign-\u003esetAccessToken($accessToken-\u003egetToken());\n    $adobeSign-\u003ecreateAgreement([\n        'documentCreationInfo' =\u003e [\n            'fileInfos'         =\u003e [\n                'libraryDocumentId' =\u003e 'your_library_document_id'\n            ],\n            'name'              =\u003e 'My Document',\n            'signatureType'     =\u003e 'ESIGN',\n            'recipientSetInfos' =\u003e [\n                'recipientSetMemberInfos' =\u003e [\n                    'email' =\u003e 'test@gmail.com'\n                ],\n                'recipientSetRole'        =\u003e [\n                    'SIGNER'\n                ]\n            ],\n            'mergeFieldInfo'    =\u003e [\n                [\n                    'fieldName'    =\u003e 'Name',\n                    'defaultValue' =\u003e 'John Doe'\n                ]\n            ],\n            'signatureFlow'     =\u003e 'SENDER_SIGNATURE_NOT_REQUIRED'\n        ]\n    ]);\n}\n```\n\n### Generate Multipart Stream for transient document upload\n\nThanks to @trip-somers for the [solution](https://github.com/kevinem/adobe-sign-php/issues/1).\n\n```php\n$file_path = '/path/to/local/document';\n\n$file_stream = Psr7\\FnStream::decorate(Psr7\\stream_for(file_get_contents($file_path)), [\n    'getMetadata' =\u003e function() use ($file_path) {\n        return $file_path;\n    }\n]);\n\n$multipart_stream   = new Psr7\\MultipartStream([\n    [\n        'name'     =\u003e 'File',\n        'contents' =\u003e $file_stream\n    ]\n]);\n\n$transient_document = $adobeSign-\u003euploadTransientDocument($multipart_stream);\n```\n\n## License\n\nThe MIT License (MIT). Please see [LICENSE](LICENSE) for more information.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmettle%2Fadobe-sign-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmettle%2Fadobe-sign-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmettle%2Fadobe-sign-php/lists"}