Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Server Library Laravel Package

oauth2-framework/server-library

OAuth2 Framework Server Library gives PHP applications the components needed to run an OAuth2 authorization server, including grant handling, token issuance, client authentication, and standards-compliant endpoint behavior for secure API access.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs. buy for the authorization layer. An OAuth2 server library is the "build" option for issuing and validating tokens, managing clients, scopes, consent, and grant flows. This package is a candidate only if the decision is explicitly "we own the authorization server in PHP."
  • Opening the platform to third parties. If the roadmap includes partner apps, a public API with delegated access, or an app marketplace, an OAuth2 authorization-code + PKCE server is a prerequisite. This is the enabling dependency for those features, not a feature itself.
  • Machine-to-machine and service-to-service auth. Client-credentials grants support internal service integrations and B2B data exchange without user context.
  • Token strategy and scope model. Choosing this forces decisions on token format (opaque vs. JWT), lifetime/refresh policy, scope taxonomy, and revocation semantics — decisions that are expensive to reverse later.
  • Roadmap gating on identity. SSO, "sign in with" flows, and delegated access all sit downstream of this choice; the selection here constrains 12–24 months of auth roadmap.
  • A decision this arguably supports best: do not standardize on it. With no star signal, a score of 0, and 0 dependents, there is no observable evidence of production adoption. That absence is itself a product input — it argues against making this a core dependency without a formal evaluation, and it should push the conversation toward better-evidenced alternatives.

When to Consider This Package

Consider it only if all of the following hold:

  • You specifically want a framework-agnostic, PSR-compatible OAuth2 server (PSR-7/15/17 style) rather than a Laravel-native one, e.g. because the auth server will be shared with non-Laravel PHP services.
  • You intend to own and operate the authorization server in-house and have PHP engineers who can maintain a security-critical dependency.
  • You have completed a security and maintenance review: current commit activity, tagged releases, CVE/advisory history, a documented disclosure process, test coverage, and dependency health.
  • You have verified the actual feature set against your requirements — authorization code + PKCE, client credentials, refresh tokens, token introspection and revocation, scope enforcement, storage adapters, and (if needed) OIDC layering. The repository metadata here is too thin to assume any of this.
  • License terms are compatible with your distribution model.

Look elsewhere if any of the following apply:

  • You're a Laravel shop first. Laravel Passport is first-party, Laravel-native, and built on the long-established league/oauth2-server — less integration glue, better docs, and a maintainer you can hold accountable.
  • You need proven adoption. league/oauth2-server has a large dependent base; this package has none.
  • You only need API tokens, not full OAuth2. Laravel Sanctum is dramatically simpler; don't pay OAuth2's consent/registration complexity for first-party mobile and SPA tokens.
  • You need OIDC certification, enterprise SSO/SAML, SCIM, or a vendor SLA. Use a dedicated IdP (Keycloak, Ory Hydra, Auth0, Okta) rather than assembling it from a library.
  • Nobody on the team can own a security-critical auth dependency, or the org requires vendor support for auth infrastructure.
  • The evaluation budget is small. A near-zero-signal package consumes review time that could go to a well-evidenced option.

How to Pitch It (Stakeholders)

To executives: Frame it as a risk-and-cost decision, not a feature pick. The capability — OAuth2 authorization server — is genuinely needed if we're monetizing the API or onboarding partners. But the leading candidate should not be a package with no visible production adoption. Our exposure if an unmaintained auth dependency is compromised is severe: credential issuance is the highest-blast-radius component we run. Recommend a short, time-boxed evaluation comparing it against Laravel Passport and league/oauth2-server, with a default toward the option with an active maintainer and a real dependent base. Owning auth also carries a permanent maintenance line item — headcount, not just a sprint.

To engineering: This is a framework-agnostic OAuth2 server, which means the Laravel wiring (routes, middleware, migrations, storage bindings, client management UI) is ours to write and keep working. That's a real cost against Passport, where much of it is provided. Before we commit, we need a security review — grant coverage, token storage, PKCE enforcement, rotation and revocation, and an advisory-response process — plus confirmation that the project is actively maintained. Treat the 0-dependents signal as a reason to demand evidence rather than to dismiss it outright, but don't let it become a core dependency without that evidence.

Ask: Approve a two-week spike to validate the grant flows and integration effort, with a written recommendation on build (this library), buy (Passport / league), or offload (managed IdP).

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
abbasudo/artisan-route
mirvan/ippanel
ignibyte/aic-framework
glavweb/data-schema-bundle
glavweb/datagrid-bundle
tacticmedia/scim-server
uni-method/frame
neika-ai/sdk
adachsoft/php-code-style
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
adachsoft/api-version-bundle
cgv/localized-resource
noith/settings
kda/laravel-package