PHPackages                             yormy/xid - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. yormy/xid

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

yormy/xid
=========

Add a random validatable public id to a model that can be safely exposed and validated

1.1.2(1y ago)0719↓50%2MITPHPPHP ^8.2

Since Jul 16Pushed 1y ago1 watchersCompare

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

READMEChangelog (7)Dependencies (2)Versions (8)Used By (2)

Xid
===

[](#xid)

[![Latest Version on Packagist](https://camo.githubusercontent.com/708a12b8f84726266ce0d582c865020ce02732eda06b43fc13370cd922e9fae6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f796f726d792f7869642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/yormy/xid)[![Total Downloads](https://camo.githubusercontent.com/a7f8462d8eb033d29252fa001e4a7bc05464e3223c3f5f4cadd41250e8f7917d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f796f726d792f7869642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/yormy/xid)[![GitHub Workflow Status](https://camo.githubusercontent.com/c8be2924fcbfb4dc3555699c9a8c951324a842cb42269c77964268e36f4c85fc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6661636164652f69676e6974696f6e2f72756e2d7068702d74657374733f6c6162656c3d5465737473)](https://camo.githubusercontent.com/c8be2924fcbfb4dc3555699c9a8c951324a842cb42269c77964268e36f4c85fc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6661636164652f69676e6974696f6e2f72756e2d7068702d74657374733f6c6162656c3d5465737473)[![Alt text](./coverage.svg)](./coverage.svg)

Xid
===

[](#xid-1)

`Just some handy stuff`

[Click for Documentation](https://yormy.github.io/xid/)
=======================================================

[](#click-for-documentation)

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

[Report security issues](https://yormy.github.io/xid/general/report_security.html)

License
-------

[](#license)

The MIT License (MIT). Please see \[License File\](() for more information.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity61

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 ~76 days

Recently: every ~96 days

Total

7

Last Release

578d ago

PHP version history (3 changes)1.0.0PHP ^8.1|^8.2

1.1.0PHP ^8

1.1.1PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/170d251daa12154cf3a268eba24133fcea1c8a960a6483023db127fda6bfd9a9?d=identicon)[yormy](/maintainers/yormy)

---

Top Contributors

[![RobPrigroup](https://avatars.githubusercontent.com/u/107175024?v=4)](https://github.com/RobPrigroup "RobPrigroup (13 commits)")

---

Tags

yormyxid

### Embed Badge

![Health badge](/badges/yormy-xid/health.svg)

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

###  Alternatives

[webmozart/assert

Assertions to validate method input/output with nice error messages.

7.6k894.0M1.2k](/packages/webmozart-assert)[bensampo/laravel-enum

Simple, extensible and powerful enumeration implementation for Laravel.

2.0k15.9M104](/packages/bensampo-laravel-enum)[swaggest/json-schema

High definition PHP structures with JSON-schema based validation

48612.5M73](/packages/swaggest-json-schema)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[ashallendesign/laravel-config-validator

A package for validating your Laravel app's config.

217905.3k5](/packages/ashallendesign-laravel-config-validator)[crazybooot/base64-validation

Laravel validators for base64 encoded files

1341.9M8](/packages/crazybooot-base64-validation)

PHPackages © 2026

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