{"id":18040541,"url":"https://github.com/richardhj/oauth2-epost","last_synced_at":"2025-04-09T16:44:01.248Z","repository":{"id":62535586,"uuid":"69759477","full_name":"richardhj/oauth2-epost","owner":"richardhj","description":"OAuth 2.0 Client Provider for E-POSTBUSINESS API.","archived":false,"fork":false,"pushed_at":"2018-05-26T13:18:20.000Z","size":20,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T18:54:13.683Z","etag":null,"topics":["deutsche-post","epost","epostbusiness-api","oauth2","oauth2-client","php-league"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/richardhj.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":"2016-10-01T19:39:24.000Z","updated_at":"2024-03-30T14:37:38.000Z","dependencies_parsed_at":"2022-11-02T14:47:37.090Z","dependency_job_id":null,"html_url":"https://github.com/richardhj/oauth2-epost","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richardhj%2Foauth2-epost","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richardhj%2Foauth2-epost/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richardhj%2Foauth2-epost/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richardhj%2Foauth2-epost/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/richardhj","download_url":"https://codeload.github.com/richardhj/oauth2-epost/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248069662,"owners_count":21042680,"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":["deutsche-post","epost","epostbusiness-api","oauth2","oauth2-client","php-league"],"created_at":"2024-10-30T15:06:49.953Z","updated_at":"2025-04-09T16:44:01.224Z","avatar_url":"https://github.com/richardhj.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# E-POSTBUSINESS Provider for OAuth 2.0 Client\n\n[![Latest Version on Packagist][ico-version]][link-packagist]\n[![Software License][ico-license]]()\n[![Dependency Status][ico-dependencies]][link-dependencies]\n\nThis package provides E-POSTBUSINESS API OAuth 2.0 support for the PHP League's [OAuth 2.0 Client](https://github.com/thephpleague/oauth2-client).\n\n## Install\n\nVia Composer\n\n``` bash\n$ composer require richardhj/oauth2-epost\n```\n\n## Usage\n\nThe provider supports _Authorization Code Grant_ as well as _Resource Owner Password Credentials Grant_. I recommend reading these usage instructions before: https://github.com/thephpleague/oauth2-client#usage\nBut instead of the `GenericProvider` you're going to use this provider.\n\nThis is how to initiate the provider:\n```php\n$provider = new EPost\\OAuth2\\Client\\Provider\\EPost(\n    [\n        'clientId'              =\u003e sprintf('%s,%s', EPOST_DEV_ID, EPOST_APP_ID),\n        'redirectUri'           =\u003e 'http://localhost:8080/oauth2_redirect.php', // Only necessary for the Authorization Code Grant flow\n        'scopes'                =\u003e ['create_letter', 'send_hybrid'],\n        'lif'                   =\u003e EPOST_LIF_CONTENT,\n        'enableTestEnvironment' =\u003e true,\n    ]\n);\n```\n\n## License\n\nThe  GNU Lesser General Public License (LGPL).\n\n[ico-version]: https://img.shields.io/packagist/v/richardhj/oauth2-epost.svg?style=flat-square\n[ico-license]: https://img.shields.io/badge/license-LGPL-brightgreen.svg?style=flat-square\n[ico-dependencies]: https://www.versioneye.com/php/richardhj:oauth2-epost/badge.svg?style=flat-square\n\n[link-packagist]: https://packagist.org/packages/richardhj/oauth2-epost\n[link-dependencies]: https://www.versioneye.com/php/richardhj:oauth2-epost\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frichardhj%2Foauth2-epost","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frichardhj%2Foauth2-epost","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frichardhj%2Foauth2-epost/lists"}