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
Jwt Auth Bundle

Jwt Auth Bundle Laravel Package

dimkinthepro/jwt-auth-bundle

A JWT authentication bundle for PHP apps that handles token issuance, validation and request guards. Configure signing keys, token TTL and refresh behaviour, then protect routes with drop-in middleware and a simple, framework-friendly API.

View on GitHub
Deep Wiki
Context7

dimkinthepro/jwt-auth-bundle provides a ready-to-use JWT authentication layer for Symfony applications, handling token signing, validation, and request authentication with minimal setup. It enables stateless authentication so you can protect routes and identify users via signed JSON Web Tokens instead of server-side sessions.

  • Simple bundle integration — enable JWT auth with minimal configuration
  • Token issuance & validation — sign, verify, and parse JWTs
  • Stateless request auth — authenticate via the Authorization header
  • Symfony security support — integrates with firewalls and user providers
  • Configurable — set secret keys, token TTL, and custom claims
Frequently asked questions about Jwt Auth Bundle
Does dimkinthepro/jwt-auth-bundle work with Laravel?
No. The bundle is coupled to Symfony's Security component, dependency injection container, and event dispatcher, and it ships no Laravel service provider, guard driver, middleware, or config-publishing surface. Laravel authentication is built on Illuminate.Auth guards and middleware, none of which this package addresses. For a Laravel API, use Laravel Sanctum or tymon/jwt-auth instead.
Can I just install dimkinthepro/jwt-auth-bundle with Composer in a Laravel app?
Composer may resolve and install it if platform requirements are met, but nothing will register with your application: there is no auto-discovered service provider, no guard contract implementation, and no middleware. The result is an inert dependency that does not protect a single route. Treat direct use in Laravel as not feasible rather than a configuration problem.
Is this a drop-in replacement for Laravel Sanctum or tymon/jwt-auth?
No. Sanctum and tymon/jwt-auth plug into Laravel's guard and middleware extension points, while this bundle plugs into Symfony's authenticator and user-provider model. The two integration surfaces have nothing in common, so there is no drop-in path. Porting would be a rewrite of the framework wiring, not a swap of one package for another.
What does this bundle add over using firebase/php-jwt directly?
Almost all of its incremental value is Symfony wiring: the authenticator, user provider, firewall integration, and bundle configuration. Token signing, parsing, expiry, and claims handling are thin wrappers over firebase/php-jwt, which is framework-agnostic and directly consumable in Laravel. In a Laravel codebase the Symfony wiring is precisely the part that does not transfer, so firebase/php-jwt plus a small custom guard is the more sensible baseline.
How much effort would it take to port this Symfony bundle to Laravel?
A realistic estimate is 3 to 5 engineer-weeks to extract the token logic, build a Laravel guard and middleware, and establish proper test coverage. That buys functionality Sanctum or tymon/jwt-auth delivers in under a day. Use that estimate as a benchmark against native options, not as a funded work item.
Does it support refresh-token rotation, token revocation, or RS256 key rotation?
The available material shows no evidence of refresh-token rotation, denylist or revocation support, or OAuth2/OIDC interoperability, and only basic configurable signing and validation. Those are product requirements rather than implementation details, so confirm them against the repository before considering the package anywhere. For most APIs, missing revocation and refresh semantics is a blocker on its own.
Is dimkinthepro/jwt-auth-bundle actively maintained and safe for production?
The adoption signals are weak: zero stars, zero dependents, and no visible issue or pull request history to gauge maintainer responsiveness. Release metadata also shows a 2026-08-01 date, which is a future timestamp and should be verified before it enters any lockfile. Authentication code needs a security audit regardless, and auditing an unadopted fork costs more than auditing a dependency you actually use elsewhere.
What is the better-supported alternative for JWT authentication in Symfony?
lexik/jwt-authentication-bundle is the supported incumbent, with adoption, documentation, and a real support path. If Symfony is genuinely in scope, choosing this bundle over Lexik requires a documented justification that the overview does not provide. The supplied docs are generated summaries rather than repo-verified API documentation, so method signatures and listener behavior remain unverified.
Which Symfony and PHP versions does this bundle support, and is it tested?
The provided materials do not state supported Symfony or PHP version constraints, and the documentation is a generated summary rather than verified API reference. Check composer.json constraints and the test suite in the repository before relying on any version claim. Given the lack of adoption signal, assume you would own test coverage yourself.
Should a Laravel team spend time evaluating this package at all?
Only as a decision artifact, not an adoption candidate. It sharpens the build-versus-buy baseline for JWT auth, provides a reference design for a Laravel-native implementation, and forces an early framework-scope question. Unless Symfony is genuinely on your twelve-month roadmap, extract those three things and close the evaluation.
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.
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
frankyso/ipaymu
3mdikram/worldmoneywords
snowsoft/config
itmosoft/laravel-subscriptions
larva/laravel-ai-qwen
diephp/sequences
users-au/socialite-provider
twidpay/twid-logger
mrnewport/laravel-plaid
mrnewport/laravel-repo
mrnewport/laravel-docsign
mrnewport/laravel-stow
mrnewport/laravel-flow
mrnewport/laravel-priceable
mrnewport/laravel-nestedterms
fredmeng/laravel-apidoc-generator