{"id":13405265,"url":"https://github.com/thephpleague/oauth2-client","last_synced_at":"2025-06-18T08:08:25.652Z","repository":{"id":6651173,"uuid":"7895524","full_name":"thephpleague/oauth2-client","owner":"thephpleague","description":"Easy integration with OAuth 2.0 service providers.","archived":false,"fork":false,"pushed_at":"2025-04-22T04:51:29.000Z","size":1310,"stargazers_count":3737,"open_issues_count":50,"forks_count":766,"subscribers_count":128,"default_branch":"master","last_synced_at":"2025-06-15T22:43:06.962Z","etag":null,"topics":["authentication","authorization","oauth","oauth2","php","sso"],"latest_commit_sha":null,"homepage":"http://oauth2-client.thephpleague.com","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/thephpleague.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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}},"created_at":"2013-01-29T16:01:42.000Z","updated_at":"2025-06-13T18:23:05.000Z","dependencies_parsed_at":"2023-01-13T14:04:03.657Z","dependency_job_id":"d70b22dc-bc3a-4dfb-b240-f6997bd6eee0","html_url":"https://github.com/thephpleague/oauth2-client","commit_stats":{"total_commits":733,"total_committers":224,"mean_commits":"3.2723214285714284","dds":0.8403819918144612,"last_synced_commit":"24552000ce6014e1c3991ae56d7c4ef04e649ee9"},"previous_names":[],"tags_count":44,"template":false,"template_full_name":null,"purl":"pkg:github/thephpleague/oauth2-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thephpleague%2Foauth2-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thephpleague%2Foauth2-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thephpleague%2Foauth2-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thephpleague%2Foauth2-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thephpleague","download_url":"https://codeload.github.com/thephpleague/oauth2-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thephpleague%2Foauth2-client/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260515146,"owners_count":23020619,"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":["authentication","authorization","oauth","oauth2","php","sso"],"created_at":"2024-07-30T19:01:58.128Z","updated_at":"2025-06-18T08:08:20.640Z","avatar_url":"https://github.com/thephpleague.png","language":"PHP","readme":"# OAuth 2.0 Client\n\nThis package provides a base for integrating with [OAuth 2.0](http://oauth.net/2/) service providers.\n\n[![Gitter Chat](https://img.shields.io/badge/gitter-join_chat-brightgreen.svg?style=flat-square)](https://gitter.im/thephpleague/oauth2-client)\n[![Source Code](https://img.shields.io/badge/source-thephpleague/oauth2--client-blue.svg?style=flat-square)](https://github.com/thephpleague/oauth2-client)\n[![Latest Version](https://img.shields.io/github/release/thephpleague/oauth2-client.svg?style=flat-square)](https://github.com/thephpleague/oauth2-client/releases)\n[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](https://github.com/thephpleague/oauth2-client/blob/master/LICENSE)\n[![Build Status](https://img.shields.io/github/actions/workflow/status/thephpleague/oauth2-client/continuous-integration.yml?label=CI\u0026logo=github\u0026style=flat-square)](https://github.com/thephpleague/oauth2-client/actions?query=workflow%3ACI)\n[![Codecov Code Coverage](https://img.shields.io/codecov/c/gh/thephpleague/oauth2-client?label=codecov\u0026logo=codecov\u0026style=flat-square)](https://codecov.io/gh/thephpleague/oauth2-client)\n[![Total Downloads](https://img.shields.io/packagist/dt/league/oauth2-client.svg?style=flat-square)](https://packagist.org/packages/league/oauth2-client)\n\n---\n\nThe OAuth 2.0 login flow, seen commonly around the web in the form of \"Connect with Facebook/Google/etc.\" buttons, is a common integration added to web applications, but it can be tricky and tedious to do right. To help, we've created the `league/oauth2-client` package, which provides a base for integrating with various OAuth 2.0 providers, without overburdening your application with the concerns of [RFC 6749](http://tools.ietf.org/html/rfc6749).\n\nThis OAuth 2.0 client library will work with any OAuth 2.0 provider that conforms to the OAuth 2.0 Authorization Framework. Out-of-the-box, we provide a `GenericProvider` class to connect to any service provider that uses [Bearer tokens](http://tools.ietf.org/html/rfc6750). See our [basic usage guide](https://oauth2-client.thephpleague.com/usage/) for examples using `GenericProvider`.\n\nMany service providers provide additional functionality above and beyond the OAuth 2.0 specification. For this reason, you may extend and wrap this library to support additional behavior. There are already many [official](https://oauth2-client.thephpleague.com/providers/league/) and [third-party](https://oauth2-client.thephpleague.com/providers/thirdparty/) provider clients available (e.g., Facebook, GitHub, Google, Instagram, LinkedIn, etc.). If your provider isn't in the list, feel free to add it.\n\nThis package is compliant with [PSR-1][], [PSR-2][], [PSR-4][], and [PSR-7][]. If you notice compliance oversights, please send a patch via pull request. If you're interested in contributing to this library, please take a look at our [contributing guidelines](https://github.com/thephpleague/oauth2-client/blob/master/CONTRIBUTING.md).\n\n## Requirements\n\nWe support the following versions of PHP:\n\n* PHP 8.4\n* PHP 8.3\n* PHP 8.2\n* PHP 8.1\n* PHP 8.0\n* PHP 7.4\n* PHP 7.3\n* PHP 7.2\n* PHP 7.1\n\n## Provider Clients\n\nWe provide a list of [official PHP League provider clients](https://oauth2-client.thephpleague.com/providers/league/), as well as [third-party provider clients](https://oauth2-client.thephpleague.com/providers/thirdparty/).\n\nTo build your own provider client, please refer to \"[Implementing a Provider Client](https://oauth2-client.thephpleague.com/providers/implementing/).\"\n\n## Usage\n\nFor usage and code examples, check out our [basic usage guide](https://oauth2-client.thephpleague.com/usage/).\n\n## Contributing\n\nPlease see [our contributing guidelines](https://github.com/thephpleague/oauth2-client/blob/master/CONTRIBUTING.md) for details.\n\n## License\n\nThe MIT License (MIT). Please see [LICENSE](https://github.com/thephpleague/oauth2-client/blob/master/LICENSE) for more information.\n\n\n[PSR-1]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-1-basic-coding-standard.md\n[PSR-2]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md\n[PSR-4]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-4-autoloader.md\n[PSR-7]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-7-http-message.md\n","funding_links":[],"categories":["PHP","Table of Contents","目录","Relying Parties (RP) Libraries","Back-End Development","武器库","身份验证( Authentication and Authorization )","类库","Client Library","身份验证和授权 Authentication and Authorization"],"sub_categories":["Authentication and Authorization","身份验证和授权 Authentication and Authorization","PHP","后端","OAuth"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthephpleague%2Foauth2-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthephpleague%2Foauth2-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthephpleague%2Foauth2-client/lists"}