{"id":15388925,"url":"https://github.com/killercodemonkey/eg-01-php-jwt","last_synced_at":"2025-06-29T11:37:37.017Z","repository":{"id":148925838,"uuid":"202317690","full_name":"KillerCodeMonkey/eg-01-php-jwt","owner":"KillerCodeMonkey","description":"PHP JWT authentication examples","archived":false,"fork":false,"pushed_at":"2019-08-26T18:14:53.000Z","size":502,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-23T19:46:03.761Z","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":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KillerCodeMonkey.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-14T09:22:10.000Z","updated_at":"2020-07-07T00:24:38.000Z","dependencies_parsed_at":"2023-04-29T10:06:08.279Z","dependency_job_id":null,"html_url":"https://github.com/KillerCodeMonkey/eg-01-php-jwt","commit_stats":{"total_commits":57,"total_committers":2,"mean_commits":28.5,"dds":"0.29824561403508776","last_synced_commit":"63401d5c0aff5a34137f301080a22b2b0874d3f8"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/KillerCodeMonkey/eg-01-php-jwt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KillerCodeMonkey%2Feg-01-php-jwt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KillerCodeMonkey%2Feg-01-php-jwt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KillerCodeMonkey%2Feg-01-php-jwt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KillerCodeMonkey%2Feg-01-php-jwt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KillerCodeMonkey","download_url":"https://codeload.github.com/KillerCodeMonkey/eg-01-php-jwt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KillerCodeMonkey%2Feg-01-php-jwt/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262588478,"owners_count":23333179,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":"2024-10-01T14:58:38.144Z","updated_at":"2025-06-29T11:37:36.988Z","avatar_url":"https://github.com/KillerCodeMonkey.png","language":"PHP","readme":"# Example 1: PHP Service Integration\n\nRepository: [eg-01-php-jwt](https://github.com/docusign/eg-01-php-jwt)\n\n\u003c!--\n## Articles and Screencasts\n\n* Guide: Using OAuth JWT flow with DocuSign.\n* Screencast: Using OAuth JWT flow with DocuSign.\n* Guide: Sending an envelope with the Node.JS SDK.\n* Screencast: Sending an example with Node.JS SDK.\n--\u003e\n\n## Introduction\n\nThis code example acts as a **System Integration**.\n\nThe application uses the OAuth JWT grant flow to impersonate\na user in the account.\n\nThis type of application interacts with DocuSign on its\nown. There is no user interface and no user is present\nduring normal operation.\n\nThis launcher example includes two workflow examples:\n1. Send an html, Word, and PDF file in an envelope to be signed.\n1. List the envelopes in the account whose status has changed in the last 30 days old.\n\n## Installation\n\nRequirements: PHP v5.4 or later\n\nDownload or clone this repository. Then:\n\n````\ncd eg-01-php-jwt\ncomposer install\n````\nThen configure the ds_config.ini config file.\n\n### Configure the example's settings\n\nConfiguring the ds_config.ini file:\n\n#### Creating the Integration Key\nYour DocuSign Integration Key must be configured for a JWT OAuth authentication flow:\n* Create a public/private key pair for the key. Store the private key\n  in a secure location. You can use a file or a key vault.\n* The example requires the private key. Store the private key in the\n  `ds_config.ini` file.\n  \n  In the ds_config.ini file, add the private key, including the \n  BEGIN / END lines with a pair of quotation marks. Example:\n\n````  \nDS_PRIVATE_KEY=\"-----BEGIN RSA PRIVATE KEY-----\nMIIEpAIBAAKCAQEAkbz3bi31zrH2ry4p8S4ncPoMdkUyu+MG46m9BalOKzWNNAvW\n1LVs5ftlXxzA6V0m6nx895w8S761/qZ8xtAAl99DezRn/3CueeBUyw+tvlmEBu1C\n....\nUC1WqwKBgQCY/6aZxlWX9XYgsQsnUjhj2aTwr7pCiQuYceIzLTQzy+nz8M4PfCE1\nrjRsm6YTpoxh7nuW2qnFfMA58UPs9tonN/z1pr9mKfwmamtPXeMSJeEZUVmh7mNx\nPEHgznlGh/vUboCuA4tQOcKytxFfKG4F+jM/g4GH9z46KZOow3Hb6g==\n-----END RSA PRIVATE KEY-----\"  \n````  \n  \n* If you will be using individual permission grants, you must create a\n  `Redirect URI` for the key. Any URL can be used. By default, this\n  example uses `https://www.docusign.com`\n\n#### The impersonated user's guid\nThe JWT will impersonate a user within your account. The user can be\nan individual or a user representing a group such as \"HR\".\n\nThe example needs the guid assigned to the user.\nThe guid value for each user in your account is available from\nthe Administration tool in the **Users** section.\n\nTo see a user's guid, **Edit** the user's information.\nOn the **Edit User** screen, the guid for the user is shown as\nthe `API Username`.\n\n## Run the examples\n\n````\nphp main.php\n````\n\n## Support, Contributions, License\n\nSubmit support questions to [StackOverflow](https://stackoverflow.com). Use tag `docusignapi`.\n\nContributions via Pull Requests are appreciated.\nAll contributions must use the MIT License.\n\nThis repository uses the MIT license, see the\n[LICENSE](https://github.com/docusign/eg-01-php-jwt/blob/master/LICENSE) file.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkillercodemonkey%2Feg-01-php-jwt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkillercodemonkey%2Feg-01-php-jwt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkillercodemonkey%2Feg-01-php-jwt/lists"}