PHPackages                             izzle/token-handler - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. izzle/token-handler

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

izzle/token-handler
===================

Simple token handler lib

2.0.0(6mo ago)02.1k↓33.3%MITPHPPHP ^8.2

Since Oct 27Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/izzle-org/token-handler)[ Packagist](https://packagist.org/packages/izzle/token-handler)[ RSS](/packages/izzle-token-handler/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (17)Used By (0)

Izzle Simple Token Handler PHP Lib
==================================

[](#izzle-simple-token-handler-php-lib)

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

[](#installation)

> Using composer:

```
$ composer require izzle/token-handler
```

Usage
-----

[](#usage)

### Save Token

[](#save-token)

```
use Izzle\TokenHandler\Model\Token;
use Illuminate\Encryption\Encrypter;
use Izzle\TokenHandler\Handler\FileHandler;

// Owner Id for this token. Must be unique. Ex. a User Id.
$ownerId = 'someOwnerId';

// Encrypter with random 16 Key for Cipher AES-128-CBC
// Cipher AES-256-CBC will need a 32 Char Key
$encrypter = new Encrypter('01234567890123456');

$token = (new Token())->setToken('someToken')
    ->setExpires(time() + 3600) // Ex. expires in 60 Minutes
    ->setOwnerId($ownerId);

$tokenHandler = new FileHandler(sys_get_temp_dir(), $encrypter);
$tokenHandler->saveToken($token, $ownerId);
```

### Load Token

[](#load-token)

```
use Illuminate\Encryption\Encrypter;
use Izzle\TokenHandler\Handler\FileHandler;

// Owner Id for this token. Must be unique. Ex. a User Id.
$ownerId = 'someOwnerId';

// Encrypter with random 16 Key for Cipher AES-128-CBC
// Cipher AES-256-CBC will need a 32 Char Key
$encrypter = new Encrypter('01234567890123456');

$tokenHandler = new FileHandler(sys_get_temp_dir(), $encrypter);
$token = $tokenHandler->loadToken($ownerId);
```

License
-------

[](#license)

The Lumen framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

45

—

FairBetter than 93% of packages

Maintenance66

Regular maintenance activity

Popularity19

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity75

Established project with proven stability

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

Recently: every ~385 days

Total

15

Last Release

203d ago

Major Versions

0.4.4 → 1.0.02024-01-23

1.0.0 → 2.0.02025-10-27

PHP version history (4 changes)0.0.1PHP &gt;=7.4

0.4.3PHP ^7.4|^8.0

1.0.0PHP ^8.1

2.0.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/8366df1d677bf0046c77cbfb70dd34246633b34823e9468a3ff30768ec7334fc?d=identicon)[sicbb](/maintainers/sicbb)

---

Tags

modellib

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/izzle-token-handler/health.svg)

```
[![Health](https://phpackages.com/badges/izzle-token-handler/health.svg)](https://phpackages.com/packages/izzle-token-handler)
```

###  Alternatives

[scrumble-nl/laravel-model-ts-type

This package makes it possible to generate TypeScript types based on your models

6984.5k](/packages/scrumble-nl-laravel-model-ts-type)[gbrock/laravel-table

Table functionality for Laravel models

7644.3k](/packages/gbrock-laravel-table)[niiknow/bayes

a machine learning lib

6950.0k](/packages/niiknow-bayes)[michalsn/codeigniter4-uuid

UUID and ULID package for CodeIgniter 4 with support for Model.

4728.7k4](/packages/michalsn-codeigniter4-uuid)[brysem/phpenums

Enums made simple in PHP.

10171.5k](/packages/brysem-phpenums)[mpociot/reanimate

Undo Laravel soft deletes

1221.2k](/packages/mpociot-reanimate)

PHPackages © 2026

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