[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-8467":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":22,"hasPages":22,"topics":24,"createdAt":10,"pushedAt":10,"updatedAt":31,"readmeContent":32,"aiSummary":33,"trendingCount":16,"starSnapshotCount":16,"syncStatus":17,"lastSyncTime":34,"discoverSource":35},8467,"oauth2-client","thephpleague\u002Foauth2-client","thephpleague","Easy integration with OAuth 2.0 service providers.","http:\u002F\u002Foauth2-client.thephpleague.com",null,"PHP",3810,772,125,38,0,2,7,1,62.36,"MIT License",false,"master",[25,26,27,28,29,30],"authentication","authorization","oauth","oauth2","php","sso","2026-06-12 04:00:39","# OAuth 2.0 Client\n\nThis package provides a base for integrating with [OAuth 2.0](http:\u002F\u002Foauth.net\u002F2\u002F) service providers.\n\n[![Gitter Chat](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fgitter-join_chat-brightgreen.svg?style=flat-square)](https:\u002F\u002Fgitter.im\u002Fthephpleague\u002Foauth2-client)\n[![Source Code](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fsource-thephpleague\u002Foauth2--client-blue.svg?style=flat-square)](https:\u002F\u002Fgithub.com\u002Fthephpleague\u002Foauth2-client)\n[![Latest Version](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Frelease\u002Fthephpleague\u002Foauth2-client.svg?style=flat-square)](https:\u002F\u002Fgithub.com\u002Fthephpleague\u002Foauth2-client\u002Freleases)\n[![Software License](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-MIT-brightgreen.svg?style=flat-square)](https:\u002F\u002Fgithub.com\u002Fthephpleague\u002Foauth2-client\u002Fblob\u002Fmaster\u002FLICENSE)\n[![Build Status](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Factions\u002Fworkflow\u002Fstatus\u002Fthephpleague\u002Foauth2-client\u002Fcontinuous-integration.yml?label=CI&logo=github&style=flat-square)](https:\u002F\u002Fgithub.com\u002Fthephpleague\u002Foauth2-client\u002Factions?query=workflow%3ACI)\n[![Codecov Code Coverage](https:\u002F\u002Fimg.shields.io\u002Fcodecov\u002Fc\u002Fgh\u002Fthephpleague\u002Foauth2-client?label=codecov&logo=codecov&style=flat-square)](https:\u002F\u002Fcodecov.io\u002Fgh\u002Fthephpleague\u002Foauth2-client)\n[![Total Downloads](https:\u002F\u002Fimg.shields.io\u002Fpackagist\u002Fdt\u002Fleague\u002Foauth2-client.svg?style=flat-square)](https:\u002F\u002Fpackagist.org\u002Fpackages\u002Fleague\u002Foauth2-client)\n\n---\n\nThe OAuth 2.0 login flow, seen commonly around the web in the form of \"Connect with Facebook\u002FGoogle\u002Fetc.\" 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\u002Foauth2-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:\u002F\u002Ftools.ietf.org\u002Fhtml\u002Frfc6749).\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:\u002F\u002Ftools.ietf.org\u002Fhtml\u002Frfc6750). See our [basic usage guide](https:\u002F\u002Foauth2-client.thephpleague.com\u002Fusage\u002F) 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:\u002F\u002Foauth2-client.thephpleague.com\u002Fproviders\u002Fleague\u002F) and [third-party](https:\u002F\u002Foauth2-client.thephpleague.com\u002Fproviders\u002Fthirdparty\u002F) 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:\u002F\u002Fgithub.com\u002Fthephpleague\u002Foauth2-client\u002Fblob\u002Fmaster\u002FCONTRIBUTING.md).\n\n## Requirements\n\nWe support the following versions of PHP:\n\n* PHP 8.5\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:\u002F\u002Foauth2-client.thephpleague.com\u002Fproviders\u002Fleague\u002F), as well as [third-party provider clients](https:\u002F\u002Foauth2-client.thephpleague.com\u002Fproviders\u002Fthirdparty\u002F).\n\nTo build your own provider client, please refer to \"[Implementing a Provider Client](https:\u002F\u002Foauth2-client.thephpleague.com\u002Fproviders\u002Fimplementing\u002F).\"\n\n## Usage\n\nFor usage and code examples, check out our [basic usage guide](https:\u002F\u002Foauth2-client.thephpleague.com\u002Fusage\u002F).\n\n## Contributing\n\nPlease see [our contributing guidelines](https:\u002F\u002Fgithub.com\u002Fthephpleague\u002Foauth2-client\u002Fblob\u002Fmaster\u002FCONTRIBUTING.md) for details.\n\n## License\n\nThe MIT License (MIT). Please see [LICENSE](https:\u002F\u002Fgithub.com\u002Fthephpleague\u002Foauth2-client\u002Fblob\u002Fmaster\u002FLICENSE) for more information.\n\n\n[PSR-1]: https:\u002F\u002Fgithub.com\u002Fphp-fig\u002Ffig-standards\u002Fblob\u002Fmaster\u002Faccepted\u002FPSR-1-basic-coding-standard.md\n[PSR-2]: https:\u002F\u002Fgithub.com\u002Fphp-fig\u002Ffig-standards\u002Fblob\u002Fmaster\u002Faccepted\u002FPSR-2-coding-style-guide.md\n[PSR-4]: https:\u002F\u002Fgithub.com\u002Fphp-fig\u002Ffig-standards\u002Fblob\u002Fmaster\u002Faccepted\u002FPSR-4-autoloader.md\n[PSR-7]: https:\u002F\u002Fgithub.com\u002Fphp-fig\u002Ffig-standards\u002Fblob\u002Fmaster\u002Faccepted\u002FPSR-7-http-message.md\n","thephpleague\u002Foauth2-client 是一个用于轻松集成OAuth 2.0服务提供商的PHP库。其核心功能是提供了一个基础框架，使得开发者可以方便地与遵循OAuth 2.0授权框架的服务提供商进行交互，而无需深入了解RFC 6749等复杂标准。该库支持使用Bearer令牌的标准OAuth 2.0流程，并且通过`GenericProvider`类实现了对任何符合OAuth 2.0规范的服务的支持。此外，还提供了许多官方和第三方的具体服务提供商客户端（如Facebook、GitHub、Google等），以满足不同场景下的需求。此项目适用于需要实现单点登录(SSO)或基于OAuth 2.0的身份验证与授权机制的PHP应用开发中。","2026-06-11 03:18:09","top_language"]