thephpleague/oauth2-server

A spec compliant, secure by default PHP OAuth 2.0 Server

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 39 minutes ago
Added to GitGenius on September 9th, 2026
Created on June 4th, 2012
Open Issues & Pull Requests: 77 (+0)
GitHub issues: Enabled
Number of forks: 1,135
Total Stargazers: 6,663 (+0)
Total Subscribers: 201 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 2.9 days
Mean response time: 148.9 days
90th percentile: 556.9 days
Tracked items: 49

How this project is maintained

Around half of the issues opened in the past year never receive a reply. Only 8% of issues opened in the past year have been closed. Three people close 98% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 12
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 1,629 days
Stale 30+ days: 11
Stale 90+ days: 5

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • Future Version (7)
  • Improvement Idea (3)
  • Spec Compliance (3)
  • Question (2)
  • Bug (1)
  • dependencies (1)

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

OAuth2-server is a standards compliant PHP OAuth 2.0 authorization server that makes implementing OAuth 2.0 trivial.

The tool solves the problem of securing APIs and managing client authentication by providing a complete, specification-compliant OAuth 2.0 server implementation. It handles the complexity of OAuth 2.0 by supporting multiple grant types out of the box: authorization code, client credentials, device authorization, implicit, refresh, and resource owner password credentials grants. The implementation follows relevant RFCs including the core OAuth 2.0 specification, bearer token usage, JSON Web Tokens, proof key for public clients, and device authorization grants. All HTTP messages must be PSR-7 compliant, ensuring interoperability with other PHP packages and frameworks.

Developers should choose this tool if they need to add OAuth 2.0 authentication to a PHP API or application. It suits projects that require standards-compliant token-based security without building authorization infrastructure from scratch. The tool works with modern PHP versions and integrates with several popular frameworks through community packages, including Laravel Passport, Symfony, Drupal, CakePHP, Mezzio, and CodeIgniter.

The project maintains rigorous quality standards through multiple continuous integration systems including Github Actions, Scrutinizer, and StyleCI. The codebase is tested with PHPUnit and enforced for code style consistency. The project welcomes contributions and maintains documented guidelines for both contributing and community conduct.