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

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

tokenly/token-generator
=======================

A library to generate secure random strings

v1.0.0(8y ago)449.4k↑21.4%3[1 PRs](https://github.com/tokenly/token-generator/pulls)3MITPHPPHP &gt;=7.0.0CI failing

Since Dec 3Pushed 6y ago3 watchersCompare

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

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

A tiny library to generate secure random strings.

Usage
-----

[](#usage)

```
$token = (new \Tokenly\TokenGenerator\TokenGenerator())->generateToken(40, 'KEY');
// KEYi5IXk1sDoHOiQcyv4b9hEkv8Q6eXjuwlvh0F8
```

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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 ~1064 days

Total

2

Last Release

3120d ago

Major Versions

v0.0.1 → v1.0.02017-11-01

PHP version history (2 changes)v0.0.1PHP &gt;=5.5.0

v1.0.0PHP &gt;=7.0.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/3b86e6a54873d5dd61d3682a3be00127af3b7b2b5c53eb070b160e29789d4c0d?d=identicon)[dweller](/maintainers/dweller)

---

Top Contributors

[![cryptonaut420](https://avatars.githubusercontent.com/u/8463048?v=4)](https://github.com/cryptonaut420 "cryptonaut420 (1 commits)")[![deweller](https://avatars.githubusercontent.com/u/51414?v=4)](https://github.com/deweller "deweller (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[smuuf/primi

A scripting language written in PHP &amp; executable within PHP.

13273.7k](/packages/smuuf-primi)[icanboogie/datetime

Extends the features of PHP DateTime and DateTimeZone

51345.7k3](/packages/icanboogie-datetime)[caseyamcl/configula

A simple, but versatile, PHP config loader

42146.6k6](/packages/caseyamcl-configula)

PHPackages © 2026

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