[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-8278":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":17,"stars90d":16,"forks30d":16,"starsTrendScore":17,"compositeScore":18,"rankGlobal":10,"rankLanguage":10,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":20,"hasPages":22,"topics":23,"createdAt":10,"pushedAt":10,"updatedAt":27,"readmeContent":28,"aiSummary":29,"trendingCount":16,"starSnapshotCount":16,"syncStatus":30,"lastSyncTime":31,"discoverSource":32},8278,"oauth2-server","thephpleague\u002Foauth2-server","thephpleague","A spec compliant, secure by default PHP OAuth 2.0 Server","https:\u002F\u002Foauth2.thephpleague.com",null,"PHP",6647,1133,200,55,0,1,40.16,"MIT License",false,"master",true,[24,25,5,26],"oauth","oauth2","php","2026-06-12 02:01:51","# PHP OAuth 2.0 Server\n\n[![Latest Version](http:\u002F\u002Fimg.shields.io\u002Fpackagist\u002Fv\u002Fleague\u002Foauth2-server.svg?style=flat-square)](https:\u002F\u002Fgithub.com\u002Fthephpleague\u002Foauth2-server\u002Freleases)\n[![Software License](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)\n[![Build Status](https:\u002F\u002Fgithub.com\u002Fthephpleague\u002Foauth2-server\u002Fworkflows\u002Ftests\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Fthephpleague\u002Foauth2-server\u002Factions)\n[![Coverage Status](https:\u002F\u002Fimg.shields.io\u002Fscrutinizer\u002Fcoverage\u002Fg\u002Fthephpleague\u002Foauth2-server.svg?style=flat-square)](https:\u002F\u002Fscrutinizer-ci.com\u002Fg\u002Fthephpleague\u002Foauth2-server\u002Fcode-structure)\n[![Quality Score](https:\u002F\u002Fimg.shields.io\u002Fscrutinizer\u002Fg\u002Fthephpleague\u002Foauth2-server.svg?style=flat-square)](https:\u002F\u002Fscrutinizer-ci.com\u002Fg\u002Fthephpleague\u002Foauth2-server)\n[![Total Downloads](https:\u002F\u002Fimg.shields.io\u002Fpackagist\u002Fdt\u002Fleague\u002Foauth2-server.svg?style=flat-square)](https:\u002F\u002Fpackagist.org\u002Fpackages\u002Fleague\u002Foauth2-server)\n\n`league\u002Foauth2-server` is a standards compliant implementation of an [OAuth 2.0](https:\u002F\u002Ftools.ietf.org\u002Fhtml\u002Frfc6749) authorization server written in PHP which makes working with OAuth 2.0 trivial. You can easily configure an OAuth 2.0 server to protect your API with access tokens, or allow clients to request new access tokens and refresh them.\n\nOut of the box it supports the following grants:\n\n- Authorization code grant\n- Client credentials grant\n- Device authorization grant\n- Implicit grant\n- Refresh grant\n- Resource owner password credentials grant\n\nThe following RFCs are implemented:\n\n- [RFC6749 \"OAuth 2.0\"](https:\u002F\u002Ftools.ietf.org\u002Fhtml\u002Frfc6749)\n- [RFC6750 \"The OAuth 2.0 Authorization Framework: Bearer Token Usage\"](https:\u002F\u002Ftools.ietf.org\u002Fhtml\u002Frfc6750)\n- [RFC7519 \"JSON Web Token (JWT)\"](https:\u002F\u002Ftools.ietf.org\u002Fhtml\u002Frfc7519)\n- [RFC7636 \"Proof Key for Code Exchange by OAuth Public Clients\"](https:\u002F\u002Ftools.ietf.org\u002Fhtml\u002Frfc7636)\n- [RFC8628 \"OAuth 2.0 Device Authorization Grant](https:\u002F\u002Ftools.ietf.org\u002Fhtml\u002Frfc8628)\n\nThis library was created by Alex Bilbie. Find him on Twitter at [@alexbilbie](https:\u002F\u002Ftwitter.com\u002Falexbilbie).\n\n## Requirements\n\nThe latest version of this package supports the following versions of PHP:\n\n- PHP 8.2\n- PHP 8.3\n- PHP 8.4\n- PHP 8.5\n\nThe `openssl` and `json` extensions are also required.\n\nAll HTTP messages passed to the server should be [PSR-7 compliant](https:\u002F\u002Fwww.php-fig.org\u002Fpsr\u002Fpsr-7\u002F). This ensures interoperability with other packages and frameworks.\n\n## Installation\n\n```\ncomposer require league\u002Foauth2-server\n```\n\n## Documentation\n\nThe library documentation can be found at [https:\u002F\u002Foauth2.thephpleague.com](https:\u002F\u002Foauth2.thephpleague.com).\nYou can contribute to the documentation in the [gh-pages branch](https:\u002F\u002Fgithub.com\u002Fthephpleague\u002Foauth2-server\u002Ftree\u002Fgh-pages\u002F).\n\n## Testing\n\nThe library uses [PHPUnit](https:\u002F\u002Fphpunit.de\u002F) for unit tests.\n\n```\nvendor\u002Fbin\u002Fphpunit\n```\n\n## Continuous Integration\n\nWe use [Github Actions](https:\u002F\u002Fgithub.com\u002Ffeatures\u002Factions), [Scrutinizer](https:\u002F\u002Fscrutinizer-ci.com\u002F), and [StyleCI](https:\u002F\u002Fstyleci.io\u002F) for continuous integration. Check out [our](https:\u002F\u002Fgithub.com\u002Fthephpleague\u002Foauth2-server\u002Fblob\u002Fmaster\u002F.github\u002Fworkflows\u002Ftests.yml) [configuration](https:\u002F\u002Fgithub.com\u002Fthephpleague\u002Foauth2-server\u002Fblob\u002Fmaster\u002F.scrutinizer.yml) [files](https:\u002F\u002Fgithub.com\u002Fthephpleague\u002Foauth2-server\u002Fblob\u002Fmaster\u002F.styleci.yml) if you'd like to know more.\n\n## Community Integrations\n\n- [Drupal](https:\u002F\u002Fwww.drupal.org\u002Fproject\u002Fsimple_oauth)\n- [Laravel Passport](https:\u002F\u002Fgithub.com\u002Flaravel\u002Fpassport)\n- [OAuth 2 Server for CakePHP 3](https:\u002F\u002Fgithub.com\u002Fuafrica\u002Foauth-server)\n- [OAuth 2 Server for Mezzio](https:\u002F\u002Fgithub.com\u002Fmezzio\u002Fmezzio-authentication-oauth2)\n- [OAuth 2 Server Bundle (Symfony)](https:\u002F\u002Fgithub.com\u002Fthephpleague\u002Foauth2-server-bundle)\n- [Heimdall for CodeIgniter 4](https:\u002F\u002Fgithub.com\u002Fezralazuardy\u002Fheimdall)\n\n## Changelog\n\nSee the [project changelog](https:\u002F\u002Fgithub.com\u002Fthephpleague\u002Foauth2-server\u002Fblob\u002Fmaster\u002FCHANGELOG.md)\n\n## Contributing\n\nContributions are always welcome. Please see [CONTRIBUTING.md](https:\u002F\u002Fgithub.com\u002Fthephpleague\u002Foauth2-server\u002Fblob\u002Fmaster\u002FCONTRIBUTING.md) and [CODE_OF_CONDUCT.md](https:\u002F\u002Fgithub.com\u002Fthephpleague\u002Foauth2-server\u002Fblob\u002Fmaster\u002FCODE_OF_CONDUCT.md) for details.\n\n## Support\n\nBugs and feature request are tracked on [GitHub](https:\u002F\u002Fgithub.com\u002Fthephpleague\u002Foauth2-server\u002Fissues).\n\nIf you have any questions about OAuth _please_ open a ticket here; please **don't** email the address below.\n\n## Security\n\nIf you discover any security related issues, please email `andrew@noexceptions.io` instead of using the issue tracker.\n\n## License\n\nThis package is released under the MIT License. See the bundled [LICENSE](https:\u002F\u002Fgithub.com\u002Fthephpleague\u002Foauth2-server\u002Fblob\u002Fmaster\u002FLICENSE) file for details.\n\n## Credits\n\nThis code is principally developed and maintained by [Andy Millington](https:\u002F\u002Ftwitter.com\u002FSephster).\n\nBetween 2012 and 2017 this library was developed and maintained by [Alex Bilbie](https:\u002F\u002Falexbilbie.com\u002F).\n\nPHP OAuth 2.0 Server is one of many packages provided by The PHP League. To find out more, please visit [our website](https:\u002F\u002Fthephpleague.com).\n\nSpecial thanks to [all of these awesome contributors](https:\u002F\u002Fgithub.com\u002Fthephpleague\u002Foauth2-server\u002Fcontributors).\n\nAdditional thanks go to the [Mozilla Secure Open Source Fund](https:\u002F\u002Fwiki.mozilla.org\u002FMOSS\u002FSecure_Open_Source) for funding a security audit of this library.\n\nThe initial code was developed as part of the [Linkey](http:\u002F\u002Flinkey.blogs.lincoln.ac.uk) project which was funded by [JISC](http:\u002F\u002Fjisc.ac.uk) under the Access and Identity Management programme.\n","`thephpleague\u002Foauth2-server` 是一个符合标准且默认安全的 PHP OAuth 2.0 服务器实现。它支持多种授权模式，包括授权码、客户端凭证、设备授权、隐式授权、刷新令牌和资源所有者密码凭证等，并实现了多个相关RFC规范如RFC6749、RFC6750、RFC7519等。该库通过提供简单配置即可保护API或允许客户端请求和刷新访问令牌，适用于需要基于OAuth 2.0协议进行身份验证与授权的应用场景中，比如构建RESTful API服务时确保数据访问的安全性。此外，它要求PHP环境为8.2及以上版本，并依赖于openssl和json扩展。",2,"2026-06-11 03:17:09","top_language"]