PHPackages                             giftuals/tokenizer - 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. giftuals/tokenizer

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

giftuals/tokenizer
==================

PHP JWT library that allows you to create trustworthy links from and to your website or webapp

v1.0.0(6y ago)03MITPHPPHP &gt;=7.2.0CI failing

Since Feb 3Pushed 6y ago1 watchersCompare

[ Source](https://github.com/giftuals/tokenizer)[ Packagist](https://packagist.org/packages/giftuals/tokenizer)[ Docs](https://tokenizer.giftuals.com)[ RSS](/packages/giftuals-tokenizer/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

Tokenizer
=========

[](#tokenizer)

PHP JWT library that allows you to create trustworthy links from and to your website or webapp

[![Build Status](https://camo.githubusercontent.com/d5007b64aba8c883291f765c440c36282ef03fa471c3d7423c06ef508a5f6a22/68747470733a2f2f7472617669732d63692e6f72672f6769667475616c732f746f6b656e697a65722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/giftuals/tokenizer)

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

[](#requirements)

- PHP &gt;= 7.2.0

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

[](#installation)

```
composer require giftuals/tokenizer --dev
```

Usage
-----

[](#usage)

```
$config = new Tokenizer\Config\Config([
    Tokenizer\Tokenizer::HASH_HMAC_KEY => 'some-uber-secret-key',
    Tokenizer\Tokenizer::CLAIM_ISSUER => 'Giftuals',
    Tokenizer\Tokenizer::CLAIM_SUBJECT => 'Example token',
    Tokenizer\Tokenizer::CLAIM_AUDIENCE => 'https://backend.giftuals.com',
]);
$tokenizer = new Tokenizer\Tokenizer($config);
$jwt = $tokenizer->createToken([
    'my_own_claim' => 'some random value',
]);
try {
    $tokenizer->isValidToken($jwt);
    $payload = $tokenizer->getTokenPayload($jwt);
} catch (Tokenizer\Exception\InvalidTokenException $e) {
    // Something went wrong
}
```

Authors
-------

[](#authors)

Coen Coppens ([giftuals](https://github.com/giftuals))

License
-------

[](#license)

Licensed under the MIT License

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

2295d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/746d8a3e9d33985b041cbc793dbcfcdd1f5c0faaa9b15ab6b87d1c778f797ff3?d=identicon)[coencoppens](/maintainers/coencoppens)

---

Top Contributors

[![giftuals](https://avatars.githubusercontent.com/u/60553896?v=4)](https://github.com/giftuals "giftuals (4 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/giftuals-tokenizer/health.svg)

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

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

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