PHPackages                             switon/id - 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. switon/id

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

switon/id
=========

Distributed ID generation services for Switon Framework

v1.0.0(1mo ago)0273MITPHPPHP &gt;=8.3CI passing

Since May 9Pushed 1mo agoCompare

[ Source](https://github.com/switon-php/id)[ Packagist](https://packagist.org/packages/switon/id)[ Docs](https://github.com/switon-php/id)[ RSS](/packages/switon-id/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (5)Versions (2)Used By (3)

Switon ID Package
=================

[](#switon-id-package)

Distributed ID generation for Switon Framework.

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

[](#installation)

```
composer require switon/id
```

**Requirements:** PHP 8.3+

Quick Start
-----------

[](#quick-start)

```
use Switon\Id\IdGeneratorInterface;
use Switon\Core\Attribute\Autowired;

class OrderService
{
    #[Autowired] protected IdGeneratorInterface $uuid7;

    public function createOrder(array $data): string
    {
        return $this->uuid7->next();
    }
}
```

Docs:

License
-------

[](#license)

MIT.

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance94

Actively maintained with recent releases

Popularity10

Limited adoption so far

Community10

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

31d ago

### Community

Maintainers

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

---

Top Contributors

[![switon-php](https://avatars.githubusercontent.com/u/247358032?v=4)](https://github.com/switon-php "switon-php (7 commits)")

---

Tags

idssnowflakeswitonuliduuididsuuidsnowflakeswiton

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/switon-id/health.svg)

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

###  Alternatives

[ramsey/uuid

A PHP library for generating and working with universally unique identifiers (UUIDs).

12.6k729.6M3.8k](/packages/ramsey-uuid)[hashids/hashids

Generate short, unique, non-sequential ids (like YouTube and Bitly) from numbers

5.5k50.9M302](/packages/hashids-hashids)[symfony/polyfill-uuid

Symfony polyfill for uuid functions

693359.3M85](/packages/symfony-polyfill-uuid)[symfony/uid

Provides an object-oriented API to generate and represent UIDs

616303.9M1.1k](/packages/symfony-uid)[webpatser/laravel-uuid

Laravel integration for webpatser/uuid - High-performance drop-in UUID replacements (15% faster than Ramsey). Provides Str macros, HasUuids trait, facades, and casts. RFC 4122/9562 compliant.

1.8k17.7M135](/packages/webpatser-laravel-uuid)[jenssegers/optimus

Id obfuscation based on Knuth's integer hash method

1.3k4.9M32](/packages/jenssegers-optimus)

PHPackages © 2026

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