PHPackages                             nixilla/php-jwt - 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. nixilla/php-jwt

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

nixilla/php-jwt
===============

Json Web Token for PHP

v0.1.1(13y ago)10313.2k↓60.5%1[1 PRs](https://github.com/nixilla/php-jwt/pulls)1BSD-3-ClausePHPPHP &gt;=5.3.2

Since May 21Pushed 10y ago2 watchersCompare

[ Source](https://github.com/nixilla/php-jwt)[ Packagist](https://packagist.org/packages/nixilla/php-jwt)[ RSS](/packages/nixilla-php-jwt/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (1)Versions (3)Used By (1)

JWT Implementation in PHP
=========================

[](#jwt-implementation-in-php)

[![Travis](https://camo.githubusercontent.com/4c2c1bf88c81fe35f65df9a4b2a3b9df0b2fc9f3c822a7521d893a8a20bdba08/68747470733a2f2f7472617669732d63692e6f72672f6e6978696c6c612f7068702d6a77742e706e67)](https://travis-ci.org/nixilla/php-jwt)

```

```

Installation
============

[](#installation)

```
{
    "require": {
        "nixilla/php-jwt": "dev-master"
    }
}
```

PHP-JWT
=======

[](#php-jwt)

A simple library to encode and decode JSON Web Tokens (JWT) in PHP. Should conform to the [current spec](http://tools.ietf.org/html/draft-ietf-oauth-json-web-token-06)

Example
-------

[](#example)

```

```

Tests
-----

[](#tests)

Run the tests using phpunit:

```
git clone https://github.com/jwmickey/php-jwt.git && \
cd php-jwt && \
mkdir bin && \
curl -sS https://getcomposer.org/installer | php -- --install-dir=bin && \
./bin/composer.phar install --dev && \
./bin/phpunit
```

License
-------

[](#license)

[3-Clause BSD](http://opensource.org/licenses/BSD-3-Clause).

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity41

Moderate usage in the ecosystem

Community17

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~0 days

Total

2

Last Release

4792d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/dc720eab7fa3d82f86b0ed7df7ab7898be7a4e61bfa77ea466d855cdef2942d9?d=identicon)[nixilla](/maintainers/nixilla)

---

Top Contributors

[![anantn](https://avatars.githubusercontent.com/u/37190?v=4)](https://github.com/anantn "anantn (8 commits)")[![nixilla](https://avatars.githubusercontent.com/u/608548?v=4)](https://github.com/nixilla "nixilla (6 commits)")[![jwmickey](https://avatars.githubusercontent.com/u/400616?v=4)](https://github.com/jwmickey "jwmickey (1 commits)")[![luciferous](https://avatars.githubusercontent.com/u/24509?v=4)](https://github.com/luciferous "luciferous (1 commits)")[![progrium](https://avatars.githubusercontent.com/u/647?v=4)](https://github.com/progrium "progrium (1 commits)")

---

Tags

jwt

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/nixilla-php-jwt/health.svg)

```
[![Health](https://phpackages.com/badges/nixilla-php-jwt/health.svg)](https://phpackages.com/packages/nixilla-php-jwt)
```

###  Alternatives

[firebase/php-jwt

A simple library to encode and decode JSON Web Tokens (JWT) in PHP. Should conform to the current spec.

10.0k478.8M2.7k](/packages/firebase-php-jwt)[lcobucci/jwt

A simple library to work with JSON Web Token and JSON Web Signature

7.6k338.7M1.1k](/packages/lcobucci-jwt)[tymon/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

11.7k51.8M372](/packages/tymon-jwt-auth)[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k103.2M104](/packages/namshi-jose)[web-token/jwt-framework

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

95220.7M103](/packages/web-token-jwt-framework)[php-open-source-saver/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

84611.1M63](/packages/php-open-source-saver-jwt-auth)

PHPackages © 2026

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