PHPackages                             dennislindsey/tokenize - 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. dennislindsey/tokenize

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

dennislindsey/tokenize
======================

Tokenization Interface

0.1(9y ago)024PHPPHP &gt;=5.6.0

Since Nov 10Pushed 9y ago1 watchersCompare

[ Source](https://github.com/dennislindsey/tokenize)[ Packagist](https://packagist.org/packages/dennislindsey/tokenize)[ RSS](/packages/dennislindsey-tokenize/feed)WikiDiscussions master Synced today

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

Tokenization
============

[](#tokenization)

A convenient PHP package for consuming Tokenization APIs

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

[](#installation)

The fastest way to get up and running is to install via [composer](https://getcomposer.org/), make sure you add the repository to your composer.json file before you require the package:

```
$ composer require dennislindsey/tokenize
```

Laravel/Lumen
-------------

[](#laravellumen)

There is a service provider included for integration with the Laravel framework. This provider will publish the proper configuration files to their appropriate locations within the framework.

##### Laravel

[](#laravel)

To register the service provider in a Laravel project, add the following to the providers array in `config/app.php`:

```
'DennisLindsey\Tokenize\Providers\TokenizationServiceProvider',
```

##### Lumen

[](#lumen)

To register the service provider in a Lumen project, add the following to the providers array in `bootstrap/app.php`:

```
$app->register('DennisLindsey\Tokenize\Providers\TokenizationServiceProvider');
```

Now, when you execulte Laravel's `vendor:publish` Artisan command, the configuration files will be published to `config/tokenization.php`.

```
$ php artisan vendor:publish --provider="DennisLindsey\Tokenize\Providers\TokenizationServiceProvider"
```

Alternatively, you could simply copy-paste `/path/to/your/vendor/directory/dennislindsey/tokenize/config/tokenization.php` to `config/tokenization.php` to achieve the same effect.

*Note: you may need to install `basicit/lumen-vendor-publish` if your Laravel/Lumen installation does not support the `vendor:publish` artisan command.*

Usage
-----

[](#usage)

### Tokenization

[](#tokenization-1)

#### Initialize your tokenizer

[](#initialize-your-tokenizer)

```
require __DIR__ . '/vendor/autoload.php';
use DennisLindsey\Tokenize\Repositories\TokenizeRepository as Tokenizer;

$tokenizer = new Tokenizer('TokenEx');
```

#### Create a token

[](#create-a-token)

```
$token = $tokenizer->store("This is random data");
```

#### Validate a token

[](#validate-a-token)

```
$tokenizer->validate($token); // true or false
```

#### Get tokenized data

[](#get-tokenized-data)

```
$data = $tokenizer->get($token); // original data sent to the store() method
```

#### Delete a token

[](#delete-a-token)

```
$tokenizer->delete($token); // true or false
```

#### Errors and References

[](#errors-and-references)

Each action call will return a reference ID that can be used to lookup a call in the provider (TokenEx) dashboard. Unsuccessful calls will also return an error describing the problem. Each can be accessed via:

```
var_dump($tokenizer->getErrors()); // array, empty if no errors
var_dump($tokenizer->getReferenceNumber()); // string
```

Notes
-----

[](#notes)

This library is inspired by the work done by **cliffom** ().

License
-------

[](#license)

All code is open source under the terms of the \[GNU GPL License\](GNU GPL License)

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

3518d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7014018?v=4)[dennislindsey](/maintainers/dennislindsey)[@dennislindsey](https://github.com/dennislindsey)

---

Top Contributors

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

---

Tags

tokenizationtokenex

### Embed Badge

![Health badge](/badges/dennislindsey-tokenize/health.svg)

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

###  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)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751284.3k37](/packages/civicrm-civicrm-core)[roundcube/roundcubemail

The Roundcube Webmail suite

7.0k1.4k3](/packages/roundcube-roundcubemail)[spatie/laravel-export

Create a static site bundle from a Laravel app

672139.5k6](/packages/spatie-laravel-export)[nfse-nacional/nfse-php

This is my package nfse

1523.1k](/packages/nfse-nacional-nfse-php)

PHPackages © 2026

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