spomky-labs/oauth2-server-access-token-manager
A PHP library from Spomky-Labs for managing OAuth2 access tokens in an authorization server, with support for token creation, persistence, retrieval, and revocation. It integrates with OAuth2 server components to handle secure access token lifecycles.
league/oauth2-server behind Laravel Passport, or a hosted IdP like Auth0/Okta/Cognito).Consider it only when all of the following hold:
Look elsewhere — and by default you should:
laravel/passport (built on league/oauth2-server) for first-party OAuth2, or laravel/sanctum for simple API tokens. These are the mainstream, maintained paths with large user bases.composer.json," treat that as tech debt to schedule out, not a pattern to extend.To executives: A library that handles one piece of issuing OAuth2 access tokens. It is not a product; it is plumbing, and this particular piece has effectively no adoption. Recommendation: do not adopt it as a standalone dependency, and do not build our own authorization server on it. Auth is high-blast-radius, low-differentiation work — the standard guidance is to buy (managed IdP) or use the ecosystem-default library (league/oauth2-server via Laravel Passport). Choosing an unmaintained component here shifts incident and compliance risk onto us for no product upside.
To engineering: It only makes sense as one adapter inside a full Spomky-Labs OAuth2 server composition. Assess it against league/oauth2-server on: maintenance cadence, security disclosure process, storage adapter fit, and migration cost off Laravel Passport. Given 0 dependents, budget for reading the source rather than trusting docs, and pin the version with an audit trail. If we are not already inside that component family, the expected value is negative — recommend we close this out and standardize on Passport/Sanctum or a managed provider instead.
How can I help you explore Laravel packages today?