PHPackages                             z-trippete/jwt-verifier - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. z-trippete/jwt-verifier

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

z-trippete/jwt-verifier
=======================

Library for jwt token verifier

2.2.0(4mo ago)0635MITPHPPHP ^8.1

Since Feb 26Pushed 4mo agoCompare

[ Source](https://github.com/z-trippete/jwt-verifier)[ Packagist](https://packagist.org/packages/z-trippete/jwt-verifier)[ RSS](/packages/z-trippete-jwt-verifier/feed)WikiDiscussions develop Synced 2d ago

READMEChangelogDependencies (4)Versions (11)Used By (0)

JWT Verifier for php
====================

[](#jwt-verifier-for-php)

A simple and lightweight php class to verify JWT tokens using JWKS (JSON Web Key Sets). Perfect for integrating with identity providers.

Features
--------

[](#features)

- **JWKS Support**: Automatically fetches public keys from a remote URL.
- **Smart Caching**: Includes a flexible `CacheManager` to store JWKS data, reducing latency and avoiding rate-limiting from your Identity Provider.
- **Claim Validation**: Verifies `iss` (Issuer), `aud` (Audience), and `exp` (Expiration).
- **Clear Exception Handling**
    Provides dedicated exceptions for every failure scenario:
    - `TokenFormatException` – Thrown when the JWT structure is invalid or malformed.
    - `TokenValidationException` – Thrown when signature, issuer, or audience validation fails.
    - `TokenExpireException` – Thrown when the token is expired (`exp` claim).
    - `OAuthProviderException` – Thrown when the JWKS endpoint cannot be reached or the HTTP request fails.
    - `JwksFormatException` – Thrown when the JWKS response is malformed, missing keys, or the requested `kid` is not found.

Requirements
------------

[](#requirements)

- PHP 8.1 or higher

Dependencies
------------

[](#dependencies)

This package leverages the most reliable libraries in the PHP ecosystem:

- **[lcobucci/jwt](https://github.com/lcobucci/jwt)**: For high-security JWT parsing and validation (v5.0+).
- **[guzzlehttp/guzzle](https://github.com/guzzle/guzzle)**: For robust asynchronous HTTP requests to fetch JWKS keys.

Installation
------------

[](#installation)

Install the package via Composer:

```
composer require z-trippete/jwt-verifier
```

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance74

Regular maintenance activity

Popularity16

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~3 days

Total

9

Last Release

141d ago

Major Versions

1.0.2 → 2.0.02026-02-26

### Community

Maintainers

![](https://www.gravatar.com/avatar/012fd0ce76a81abbe50e24005432b95717b0c44a7d8ee71cc35503f0bda16d98?d=identicon)[ZTrippete](/maintainers/ZTrippete)

---

Top Contributors

[![giuserai99](https://avatars.githubusercontent.com/u/50454946?v=4)](https://github.com/giuserai99 "giuserai99 (15 commits)")[![maseba](https://avatars.githubusercontent.com/u/64329290?v=4)](https://github.com/maseba "maseba (1 commits)")

### Embed Badge

![Health badge](/badges/z-trippete-jwt-verifier/health.svg)

```
[![Health](https://phpackages.com/badges/z-trippete-jwt-verifier/health.svg)](https://phpackages.com/packages/z-trippete-jwt-verifier)
```

###  Alternatives

[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.8M666](/packages/shopware-core)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k832.6k52](/packages/neuron-core-neuron-ai)[simplesamlphp/simplesamlphp-module-oidc

A SimpleSAMLphp module adding support for the OpenID Connect protocol

5018.6k1](/packages/simplesamlphp-simplesamlphp-module-oidc)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

353.6k](/packages/eslazarev-wildberries-sdk)[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1239.7k25](/packages/fleetbase-core-api)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
