ryangjchandler/bearer
A lightweight Laravel package for issuing and authenticating bearer tokens, letting you protect API routes with token abilities and expiration—no full OAuth setup required.
Adopt when:
Look elsewhere when:
For executives (one paragraph): We evaluated adding API token authentication to our product and found a small, actively maintained Laravel package that gives us secure bearer-token access for API and machine clients without a custom build. The latest release confirms compatibility with the current Laravel major version, which means we can take our planned framework upgrade without a parallel auth project. The recommendation is to adopt it for token-based API access and keep our identity strategy (SSO, OAuth) on a separate track — this is deliberately scoped to reduce cost and risk, not to replace our broader auth roadmap. Estimated saving is roughly one engineering sprint of initial build plus the recurring cost of owning security-critical auth code.
For engineering: Bearer is a narrow, single-purpose dependency — hashed token storage, a guard/middleware, and Laravel-native ergonomics. It is not a replacement for Sanctum (SPA/session) or Passport (OAuth2), and we should not stretch it into those roles. v2.1.1 is a compatibility-only release: no breaking changes, no new features, no migration work — it simply keeps us current with Laravel 13.x. Action items: pin the version, add a dependency-health check to our upgrade checklist (single-maintainer package), and make sure token expiry, revocation, abilities, rate limiting, and audit logging are explicitly owned by us, since the package intentionally does not solve those.
How can I help you explore Laravel packages today?