talira

Compare

PHP-JWTlcobucci/jwtjwt-authOAuth 2.0 Client
What it isEncode and decode JSON Web Tokens in PHPFramework-agnostic PHP library to issue, parse and validate JSON Web TokensJSON Web Token authentication for Laravel and LumenPHP League's base library for OAuth 2.0 sign-in with any provider
KindOpen sourceOpen sourceOpen sourceOpen source
Trust0.610.670.500.55
Stars98037479114723816
Last commit2026-11-172026-11-262026-10-242026-11-20
LicenceBSD-3-ClauseBSD-3-ClauseMITMIT
PricingFree and open sourceFree and open sourceFree and open sourceFree and open source
Free tierYesYesYesYes
Self-hostable————
Ways to run it————
SOC 2————
HIPAA————
SSO————
API————
Plugins————
MCP server————
CompanyGoogle
public company (NASDAQ:GOOGL)
Luís CobucciSean TymonThe League of Extraordinary Packages
Features
  • Encodes and decodes JWTs per RFC 7519
  • HS256/384/512, RS256/384/512, ES256/384, PS256 and EdDSA (Ed25519)
  • Parses JSON Web Key sets
  • Fetches and caches JWKS from a public URL
  • framework-agnostic: no framework dependency
  • HMAC, RSA, ECDSA and EdDSA signers, plus keyed BLAKE2b
  • issue, parse and validate tokens
  • guides for extending the library and rotating keys
  • Laravel auth guard that issues and checks JSON Web Tokens
  • signing with a shared secret or a public and private key pair
  • configurable token time to live and refresh time to live
  • required and persistent claims, and a lock on the token subject
  • token blacklist with a grace period
  • leeway for clock skew
  • GenericProvider for any OAuth 2.0 service using Bearer tokens
  • official League and third-party provider clients
  • a guide to writing your own provider client
  • PSR-1, PSR-2, PSR-4 and PSR-7 compliant
Limitations
  • Supports only signed JWTs (JWS): encrypted JWTs (JWE) aren't supported
  • Signs and verifies tokens only: encryption (JWE) isn't supported yet.
    • Needs PHP 8.2 or later.