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(3mo ago)0344MITPHPPHP ^8.1

Since Feb 26Pushed 3mo 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 3w 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

42

—

FairBetter than 89% of packages

Maintenance82

Actively maintained with recent releases

Popularity17

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity49

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

96d 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

[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k496.1k33](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.4M519](/packages/shopware-core)[simplesamlphp/simplesamlphp-module-oidc

A SimpleSAMLphp module adding support for the OpenID Connect protocol

5017.7k1](/packages/simplesamlphp-simplesamlphp-module-oidc)[fschmtt/keycloak-rest-api-client-php

PHP client to interact with Keycloak's Admin REST API.

48100.6k2](/packages/fschmtt-keycloak-rest-api-client-php)[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1232.2k16](/packages/fleetbase-core-api)

PHPackages © 2026

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