{"id":18821160,"url":"https://github.com/compwright/oauth2-fieldedge","last_synced_at":"2026-01-31T19:34:29.793Z","repository":{"id":64515551,"uuid":"576395254","full_name":"compwright/oauth2-fieldedge","owner":"compwright","description":"FieldEdge OAuth 2.0 support for the PHP League's OAuth 2.0 Client","archived":false,"fork":false,"pushed_at":"2024-12-03T19:07:09.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-08T23:47:27.471Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/compwright/oauth2-fieldedge","language":"PHP","has_issues":true,"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/compwright.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","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,"zenodo":null},"funding":{"github":"compwright"}},"created_at":"2022-12-09T18:43:26.000Z","updated_at":"2024-12-03T19:07:13.000Z","dependencies_parsed_at":"2025-05-22T09:48:47.877Z","dependency_job_id":null,"html_url":"https://github.com/compwright/oauth2-fieldedge","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/compwright/oauth2-fieldedge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compwright%2Foauth2-fieldedge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compwright%2Foauth2-fieldedge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compwright%2Foauth2-fieldedge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compwright%2Foauth2-fieldedge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/compwright","download_url":"https://codeload.github.com/compwright/oauth2-fieldedge/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compwright%2Foauth2-fieldedge/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28951457,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T18:30:42.805Z","status":"ssl_error","status_checked_at":"2026-01-31T18:30:19.593Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":"2024-11-08T00:34:54.872Z","updated_at":"2026-01-31T19:34:29.777Z","avatar_url":"https://github.com/compwright.png","language":"PHP","funding_links":["https://github.com/sponsors/compwright"],"categories":[],"sub_categories":[],"readme":"# FieldEdge Provider for OAuth 2.0 Client\n\n[![Latest Version](https://img.shields.io/github/release/compwright/oauth2-fieldedge.svg?style=flat-square)](https://github.com/compwright/oauth2-fieldedge/releases)\n[![Total Downloads](https://img.shields.io/packagist/dt/compwright/oauth2-fieldedge.svg?style=flat-square)](https://packagist.org/packages/compwright/oauth2-fieldedge)\n\nThis package provides FieldEdge OAuth 2.0 support for the PHP League's [OAuth 2.0 Client](https://github.com/thephpleague/oauth2-client).\n\n## Installation\n\nTo install, use composer:\n\n```\ncomposer require compwright/oauth2-fieldedge league/oauth2-client\n```\n\n## Usage\n\nUsage is the same as The League's OAuth client, using `\\Compwright\\OAuth2_Fieldedge\\Provider` as the provider.\n\n### Example: Client Credentials Flow\n\n```php\n$provider = new Compwright\\OAuth2_Fieldedge\\Provider([\n    'clientId'      =\u003e '{fieldedge-client-id}',\n    'clientSecret'  =\u003e '{fieldedge-api-key}',\n]);\n\n// Get an access token\n$token = $provider-\u003egetAccessToken('client_credentials');\n\n// Use the token to interact with an API on the users behalf\necho $token-\u003egetToken();\n\n// The token is really a JWT, getResourceOwnerId() extracts the company_id claim\necho $token-\u003egetResourceOwnerId();\n```\n\n## Testing\n\n```bash\n$ make test\n```\n\n## Contributing\n\nPlease see [CONTRIBUTING](https://github.com/compwright/oauth2-fieldedge/blob/master/CONTRIBUTING.md) for details.\n\n\n## Credits\n\n- [Jonathon Hill](https://github.com/compwright)\n- [All Contributors](https://github.com/compwright/oauth2-fieldedge/contributors)\n\n\n## License\n\nThe MIT License (MIT). Please see [License File](https://github.com/compwright/oauth2-fieldedge/blob/master/LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcompwright%2Foauth2-fieldedge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcompwright%2Foauth2-fieldedge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcompwright%2Foauth2-fieldedge/lists"}