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

Get Jwt Bundle Laravel Package

gfreeau/get-jwt-bundle

A Symfony bundle that adds JSON Web Token authentication to your app, letting clients obtain and send JWTs to authenticate users against your existing user provider with minimal setup.

View on GitHub
Deep Wiki
Context7

Technical Evaluation

Architecture fit. Despite the catalog framing, this is a Symfony bundle, not a Laravel package. It integrates through Symfony's Security component — a firewall listener plus a DI extension — which has no direct counterpart in Laravel's middleware/service-provider model. If the target application is Laravel, architectural fit is effectively zero: the contracts it implements (security listeners, authentication providers, token factories) are a different runtime world.

Integration feasibility. Two paths. If we are on legacy Symfony, integration is a composer require plus firewall YAML — low effort, contingent on version compatibility. If we are on Laravel, we cannot consume the bundle; the only realistic move is to extract the JWT issue/verify logic (likely a few hundred lines of glue) and reimplement it as middleware. Porting is almost certainly cheaper than forcing adoption.

Technical risk. High.

  • 85 stars and 0 dependents means no production reference base and no upstream pressure to patch CVEs — effectively unproven.
  • A quality score of 2.82 signals staleness; expect Symfony 2.x/3.x-era APIs (GetResponseEvent-style listeners) and a likely-abandoned JWT dependency (e.g., namshi/jose), incompatible with Symfony 4.4+/5+/6 and modern PHP.
  • GET-borne tokens are a security anti-pattern: tokens land in access logs, proxy/CDN logs, Referer headers, browser history, and analytics. This alone may fail a security review.

Key questions.

  • Which Symfony and PHP versions are actually supported? Are Composer constraints pinned to EOL branches?
  • Which JWT library, and is it abandoned? RS256/ES256 support, or HS256 only?
  • Does it only issue tokens, or also validate them on subsequent requests? Where is revocation?
  • Are iss/aud/exp/nbf validated, with clock-skew tolerance and algorithm pinning?
  • Is GET the only transport, or is an Authorization-header mode available?
  • License, security disclosure policy, and maintainer bus factor?

Integration Approach

Stack fit. A plausible low-effort fit only for a Symfony 3.x-era application. For a Laravel stack — as the brief frames it — do not adopt. Laravel equivalents: tymon/jwt-auth (community, JWT-native), Laravel Sanctum (first-party, opaque tokens), Laravel Passport (OAuth2), or firebase/php-jwt plus a thin custom middleware. For longevity and low dependency surface, recommend the last.

Migration path. Reimplement the bundle's behavioral contract natively: an AuthController@issue endpoint plus a VerifyJwt middleware backed by firebase/php-jwt, preserving the same claim schema so clients are unaffected. If we already operate Symfony, a decoupled alternative is to run the bundle as an internal token-issuing service and verify tokens in Laravel against a shared public key.

Compatibility. Pin exact versions and verify ext-openssl, Composer constraints against our PHP runtime, PSR-4 autoloading, and whether the listener signature survives our Symfony version. Expect to fork and patch regardless of path.

Sequencing.

  1. Timeboxed 2–3 day spike: confirm installability and a token round-trip.
  2. Security review of GET transport and the JWT library before further investment.
  3. If proceeding: fork, swap to a maintained JWT library, add tests and CI.
  4. Reimplement the contract in Laravel middleware.
  5. Ship behind a feature flag, dual-run against the current auth path, then cut over.

Keep this off the critical path for any release.

Operational Impact

Maintenance. Assume we own it. With zero dependents and a sub-3 quality score, there is no community to absorb framework upgrades or CVE patches. Budget a named owner and ~1–2 engineer-days per quarter for dependency currency — or, preferably, replace.

Support. No vendor, no SLA, bus factor of one, likely sparse documentation. Incidents will be debugged from source. For a production authentication surface that is unacceptable as a sole dependency; it is tolerable only as a forked, internally owned component.

Scaling. JWT verification is stateless and cheap — horizontally scalable by construction. Costs sit elsewhere: URL-borne tokens bloat logs and break CDN/proxy cache semantics; revocation requires a denylist (stateful, adds a Redis/DynamoDB hop per request) or short TTLs plus refresh; key rotation needs JWKS-style distribution the bundle likely does not provide.

Failure modes.

  • Expired token or clock skew → mass 401s.
  • Key rotation without overlap → total auth outage.
  • Algorithm confusion (accepting none, or HS256 against a public key) → auth bypass.
  • Token leakage via logs/Referer/URLs → account takeover.
  • URL length limits or proxy truncation → intermittent auth failures.
  • Firewall ordering or a misconfigured pattern → listener silently not firing.
  • Unpatched dependency CVE → unpatchable exposure.

Ramp-up. Low for engineers fluent in the legacy Symfony Security component — a niche skill by current standards. High for a Laravel-only team, where nothing learned transfers. Given thin docs and test coverage, source-reading is required: ramp-up cost likely exceeds writing the equivalent middleware from scratch.

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.
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
itstructure/laravel-multilingual-tools
pdustdar/elasticsearch
markupai/php-sdk
rlacerda83/lumem-microservice-shipment
uni-method/symfony-lib
tacticmedia/scim-server-bundle
neika-ai/symfony-bundle
mattleads/agent-publishing-bundle
glavweb/framework-bundle