PHPackages                             wernerdweight/token-generator - 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. wernerdweight/token-generator

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

wernerdweight/token-generator
=============================

Simple PHP random token generator

2.0.0(3y ago)14.1k—0%MITPHPPHP &gt;=8.1

Since Jan 23Pushed 3y ago1 watchersCompare

[ Source](https://github.com/wernerdweight/TokenGenerator)[ Packagist](https://packagist.org/packages/wernerdweight/token-generator)[ Docs](https://github.com/wernerdweight/TokenGenerator)[ RSS](/packages/wernerdweight-token-generator/feed)WikiDiscussions master Synced today

READMEChangelog (9)Dependencies (2)Versions (10)Used By (0)

Token Generator
===============

[](#token-generator)

Simple PHP random token generator

[![Build Status](https://camo.githubusercontent.com/197039fa53a9bd9955eda5b246a690ccdeecabc87d8eba09eb2e3f3b785f208f/68747470733a2f2f6170702e7472617669732d63692e636f6d2f7765726e6572647765696768742f546f6b656e47656e657261746f722e7376673f6272616e63683d6d6173746572)](https://app.travis-ci.com/wernerdweight/TokenGenerator)

Instalation
-----------

[](#instalation)

1. Download using composer

```
composer require wernerdweight/token-generator
```

2. Use in your project

```
use WernerDweight\TokenGenerator\TokenGenerator;

$tokenGenerator = new TokenGenerator();
$token = $tokenGenerator->generate();
```

API
---

[](#api)

TODO:

###  Health Score

35

—

LowBetter than 81% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity75

Established project with proven stability

 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

Every ~186 days

Recently: every ~371 days

Total

9

Last Release

1124d ago

Major Versions

1.1.1 → 2.0.02023-02-21

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

1.0.5PHP &gt;=7.2.0

2.0.0PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/5b1454d4a92d76c33018ef518335ec921cf3eadbe591437c47622510f465c9ed?d=identicon)[wernerdweight](/maintainers/wernerdweight)

---

Top Contributors

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

---

Tags

randomgeneratortoken

### Embed Badge

![Health badge](/badges/wernerdweight-token-generator/health.svg)

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

###  Alternatives

[mistic100/randomcolor

Generate attractive random colors

2471.4M6](/packages/mistic100-randomcolor)[ihor/nspl

Non-standard PHP library (NSPL) - functional primitives toolbox and more

375368.1k](/packages/ihor-nspl)[nubs/random-name-generator

A library to create interesting, sometimes entertaining, random names.

133659.0k3](/packages/nubs-random-name-generator)[gladcodes/keygen

A fluent PHP random key generator.

119626.8k1](/packages/gladcodes-keygen)[markrogoyski/itertools-php

Iteration tools for PHP

14910.6k](/packages/markrogoyski-itertools-php)[delight-im/random

The most convenient way to securely generate anything random in PHP

2345.0k](/packages/delight-im-random)

PHPackages © 2026

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