PHPackages                             vjik/uuid - 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. vjik/uuid

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

vjik/uuid
=========

UUID Helper

1531PHPCI failing

Since Jan 3Pushed 5y ago1 watchersCompare

[ Source](https://github.com/vjik/uuid)[ Packagist](https://packagist.org/packages/vjik/uuid)[ RSS](/packages/vjik-uuid/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependenciesVersions (1)Used By (0)

UUID Helper
===========

[](#uuid-helper)

[![Latest Stable Version](https://camo.githubusercontent.com/cceaf66e3137b5bf221fbcbd86601da1fc3dc6dde8eeadbfad945d580dfed6e0/68747470733a2f2f706f7365722e707567782e6f72672f766a696b2f757569642f762f737461626c652e706e67)](https://packagist.org/packages/vjik/uuid)[![Total Downloads](https://camo.githubusercontent.com/c96371358a00112bf3e0c32471e2b0f7b85a840bea5cf3ba226ed558d908fefb/68747470733a2f2f706f7365722e707567782e6f72672f766a696b2f757569642f646f776e6c6f6164732e706e67)](https://packagist.org/packages/vjik/uuid)[![Build status](https://github.com/vjik/uuid/workflows/build/badge.svg)](https://github.com/vjik/uuid/actions?query=workflow%3Abuild)[![Mutation testing badge](https://camo.githubusercontent.com/1d3ffd73d3aed858fba5a5b68c7c943c64d2c875576f8cbbfb6eab6a617e1293/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742675726c3d687474707325334125324625324662616467652d6170692e737472796b65722d6d757461746f722e696f2532466769746875622e636f6d253246766a696b253246757569642532466d6173746572)](https://dashboard.stryker-mutator.io/reports/github.com/vjik/uuid/master)[![static analysis](https://github.com/vjik/uuid/workflows/static%20analysis/badge.svg)](https://github.com/vjik/uuid/actions?query=workflow%3A%22static+analysis%22)

The package provides `UuidHelper` that has static methods to work with UUID. Based on library [ramsey/uuid](https://uuid.ramsey.dev/).

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

[](#installation)

The package could be installed with [composer](https://getcomposer.org/download/):

```
composer require vjik/uuid --prefer-dist
```

`UuidHelper` usage
------------------

[](#uuidhelper-usage)

`UuidHelper` methods are static so usage is like the following:

```
$bytes = \Vjik\Uuid\UuidHelper::convertStringToBytes('1f2d3897-a226-4eec-bd2c-d0145ef25df9');
```

Overall the helper has the following methods:

- generateTimestampFirstCombUuid4
- convertStringToBytes
- convertBytesToString

Testing
-------

[](#testing)

### Unit testing

[](#unit-testing)

The package is tested with [PHPUnit](https://phpunit.de/). To run tests:

```
./vendor/bin/phpunit
```

### Mutation testing

[](#mutation-testing)

The package tests are checked with [Infection](https://infection.github.io/) mutation framework with [Infection Static Analysis Plugin](https://github.com/Roave/infection-static-analysis-plugin). To run it:

```
./vendor/bin/roave-infection-static-analysis-plugin
```

### Static analysis

[](#static-analysis)

The code is statically analyzed with [Psalm](https://psalm.dev/). To run static analysis:

```
./vendor/bin/psalm
```

License
-------

[](#license)

The UUID Helper is free software. It is released under the terms of the BSD License. Please see [`LICENSE`](./LICENSE.md) for more information.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity31

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/53e5ee1dedd50f71e4aeeac2929f786cdfb400359d4776e6cd806388d0d5df2c?d=identicon)[vjik](/maintainers/vjik)

---

Top Contributors

[![vjik](https://avatars.githubusercontent.com/u/525501?v=4)](https://github.com/vjik "vjik (3 commits)")

### Embed Badge

![Health badge](/badges/vjik-uuid/health.svg)

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

PHPackages © 2026

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