PHPackages                             smarcet/jose4php - 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. smarcet/jose4php

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

smarcet/jose4php
================

JWT, JWS, JWE, JWA and JWK implementation in PHP

2.0.0(11mo ago)317.1k↓46.9%3[2 PRs](https://github.com/smarcet/JOSE4PHP/pulls)MITPHPPHP ^8.3CI passing

Since Jul 13Pushed 1mo ago4 watchersCompare

[ Source](https://github.com/smarcet/JOSE4PHP)[ Packagist](https://packagist.org/packages/smarcet/jose4php)[ Docs](https://github.com/smarcet)[ RSS](/packages/smarcet-jose4php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (4)Versions (25)Used By (0)

JOSE4PHP
========

[](#jose4php)

JSON Web Token (JWT)/JSON Web Signature (JWS)/JSON Web Key (JWK)/JSON Web Encryption (JWE)/JSON Web Algorithms (JWA) Implementation

```
* https://tools.ietf.org/html/rfc7519
* https://tools.ietf.org/html/rfc7515
* https://tools.ietf.org/html/rfc7516
* https://tools.ietf.org/html/rfc7517
* https://tools.ietf.org/html/rfc7518

```

[![Build Status](https://camo.githubusercontent.com/16c522a80925a9ded7032beaa71a4183f4e2b9391f04057284f49e2dd34bdfb0/68747470733a2f2f7472617669732d63692e6f72672f736d61726365742f4a4f5345345048502e737667)](https://travis-ci.org/smarcet/JOSE4PHP)[![Latest Stable Version](https://camo.githubusercontent.com/75a430135f5274beead6fa622a3945b498247c602d0416b2fd6b3c0745312197/68747470733a2f2f706f7365722e707567782e6f72672f736d61726365742f6a6f7365347068702f762f737461626c65)](https://packagist.org/packages/smarcet/jose4php)[![Total Downloads](https://camo.githubusercontent.com/e78eaaf1d53a653ee6ba650b623ba86de594287d4fc6ee1996261ba0b7a2f36f/68747470733a2f2f706f7365722e707567782e6f72672f736d61726365742f6a6f7365347068702f646f776e6c6f616473)](https://packagist.org/packages/smarcet/jose4php)[![Latest Unstable Version](https://camo.githubusercontent.com/07492af13e85dda1b528af6903b19083e12286b4a2c4f13558494ec2917b054b/68747470733a2f2f706f7365722e707567782e6f72672f736d61726365742f6a6f7365347068702f762f756e737461626c65)](https://packagist.org/packages/smarcet/jose4php)[![License](https://camo.githubusercontent.com/fc4cab02e862b58b8ae7db0569b9966acba37c3d6221c4b61324c32d6573246d/68747470733a2f2f706f7365722e707567782e6f72672f736d61726365742f6a6f7365347068702f6c6963656e7365)](https://packagist.org/packages/smarcet/jose4php)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/6e2246f13fa9469cccece873411c6e20402c1cd9828e64121f3f48e63d97f93d/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f736d61726365742f4a4f5345345048502f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/smarcet/JOSE4PHP/?branch=master)

Prerequisites
-------------

[](#prerequisites)

```
* LAMP/LEMP environment
* PHP >= 7.2
* composer (https://getcomposer.org/)

```

Install
-------

[](#install)

run following commands on root folder

```
* curl -s https://getcomposer.org/installer | php
* php composer.phar install --prefer-dist
* php composer.phar dump-autoload --optimize
* vendor/bin/phpunit --bootstrap vendor/autoload.php

```

###  Health Score

56

—

FairBetter than 98% of packages

Maintenance72

Regular maintenance activity

Popularity31

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity88

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 97.2% 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 ~226 days

Recently: every ~888 days

Total

17

Last Release

347d ago

Major Versions

1.0.17 → 2.0.02025-06-05

PHP version history (3 changes)1.0.0PHP &gt;=5.3

1.0.16PHP &gt;=7.1.3

2.0.0PHP ^8.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2577122?v=4)[sebastian marcet](/maintainers/smarcet)[@smarcet](https://github.com/smarcet)

---

Top Contributors

[![smarcet](https://avatars.githubusercontent.com/u/2577122?v=4)](https://github.com/smarcet "smarcet (70 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (2 commits)")

---

Tags

jose-jwtjwt-tokenjwtJWSJWEJOSEjwaJSON Web TokenJSON Web SignatureOpenID ConnectJSON Web EncryptionID TokenJSON Web Algorithms

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/smarcet-jose4php/health.svg)

```
[![Health](https://phpackages.com/badges/smarcet-jose4php/health.svg)](https://phpackages.com/packages/smarcet-jose4php)
```

###  Alternatives

[web-token/jwt-framework

JSON Object Signing and Encryption library for PHP and Symfony Bundle.

94818.9M77](/packages/web-token-jwt-framework)[sop/jwx

A PHP library for JSON web tokens (JWT) with signature (JWS) and encryption (JWE) support.

26257.5k1](/packages/sop-jwx)[web-token/jwt-library

JWT library

2011.2M83](/packages/web-token-jwt-library)[web-token/jwt-bundle

JWT Bundle of the JWT Framework.

132.5M7](/packages/web-token-jwt-bundle)[gamegos/jws

Json Web Signature (JWS) PHP implementation

26359.6k6](/packages/gamegos-jws)

PHPackages © 2026

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