PHPackages                             beastbytes/token-uuid4 - 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. beastbytes/token-uuid4

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

beastbytes/token-uuid4
======================

UUID 4 Token Factory for BeastBytes Token

02PHP

Since Mar 24Pushed 1y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

BeastBytes Token Factory UUID4
==============================

[](#beastbytes-token-factory-uuid4)

Factory for generating UUID4 tokens for use in the Token Manager of
the [BeastBytes Token](https://github.com/beastbytes/token.git) package.

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

[](#requirements)

- PHP 8.1 or higher.

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

[](#installation)

Installed the package with Composer:

```
composer require beastbytes/token-uuid4
```

or add the following to the 'require' section composer.json:

```
"beastbytes/token-uuid4": "^1.0"
```

Usage
-----

[](#usage)

If using directly:

```
$tokenManager = new BeastBytes\Token\TokenManager(
    new BeastBytes\Token\Uuid4\TokenFactory(),
    new BeastBytes\Token\Php\TokenStorage() // or any other TokenStorageInterface implementation
);
```

or define in the "di" section of Yii3 configuration:

```
return [
    TokenFactoryInterface::class => \BeastBytes\Token\Uuid4\TokenFactory::class,
    TokenStorageInterface::class => [
        'class' => TokenStorage::class,
        '__construct()' => [
            // constructor arguments for the TokenStorage class
        ],
    ],
    ManagerInterface::class => [
        'class' => Manager::class,
        '__construct()' => [
            'factory' => Reference::to(TokenFactoryInterface::class),
            'storage' => Reference::to(TokenStorageInterface::class),
        ],
    ],
];
```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity15

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/b0b5133b5137b26eeb25056449c28364ac0af31836eefba78912a9c8f0743aa3?d=identicon)[BeastBytes](/maintainers/BeastBytes)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/beastbytes-token-uuid4/health.svg)

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

PHPackages © 2026

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