PHPackages                             nurfachmi/cuid2 - 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. nurfachmi/cuid2

ActiveLibrary

nurfachmi/cuid2
===============

A PHP library for generating collision-resistant ids (CUIDs).

0.1.2(2y ago)04MITPHPPHP ^8.1

Since Jan 31Pushed 2y ago1 watchersCompare

[ Source](https://github.com/AaEzha/php-cuid2)[ Packagist](https://packagist.org/packages/nurfachmi/cuid2)[ RSS](/packages/nurfachmi-cuid2/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (5)Versions (4)Used By (0)

nurfachmi/cuid2
===============

[](#nurfachmicuid2)

[![GitHub Workflow Status (with event)](https://camo.githubusercontent.com/bcd17b1f97fbfcc500f12562ae4daec6e1de6bdf4959a4009503cf3089ac1d30/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6161657a68612f7068702d63756964322f63692e79616d6c3f7374796c653d666f722d7468652d6261646765266c6f676f3d676974687562)](https://github.com/aaezha/php-cuid2/actions/workflows/ci.yaml)

[![PHP Version](https://camo.githubusercontent.com/e99615d91091d4d58141159f99c2bd2e2258ce25ac40cac2a152c87fdcbd5e2c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f6e7572666163686d692f63756964322f7068703f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/e99615d91091d4d58141159f99c2bd2e2258ce25ac40cac2a152c87fdcbd5e2c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f6e7572666163686d692f63756964322f7068703f7374796c653d666f722d7468652d6261646765)[![Packagist](https://camo.githubusercontent.com/5810a943dfe1ae19589b2e1f55ee81d01f57a1db10a7c4d025c759841f05e5ba/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e7572666163686d692f63756964323f7374796c653d666f722d7468652d6261646765266c6f676f3d7061636b6167697374266c6f676f436f6c6f723d7768697465266c6162656c3d737461626c65)](https://packagist.org/packages/nurfachmi/cuid2)[![Downloads](https://camo.githubusercontent.com/859b4e26478671abe37b75deeb0c97fd21b31c648b35c683077d2d0c2ff3580d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e7572666163686d692f63756964323f7374796c653d666f722d7468652d6261646765266c6f676f3d7061636b6167697374266c6f676f436f6c6f723d776869746526636f6c6f723d38)](https://camo.githubusercontent.com/859b4e26478671abe37b75deeb0c97fd21b31c648b35c683077d2d0c2ff3580d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e7572666163686d692f63756964323f7374796c653d666f722d7468652d6261646765266c6f676f3d7061636b6167697374266c6f676f436f6c6f723d776869746526636f6c6f723d38)[![GitHub](https://camo.githubusercontent.com/c27064c03e94c70305db42db0dee599ad998bbd32558611c324890deb60dcf16/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6161657a68612f7068702d63756964323f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/c27064c03e94c70305db42db0dee599ad998bbd32558611c324890deb60dcf16/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6161657a68612f7068702d63756964323f7374796c653d666f722d7468652d6261646765)

A PHP implementation of collision-resistant ids ([prior](https://github.com/visus-io/php-cuid2)). You can read more about CUIDs from the [official project website](https://github.com/paralleldrive/cuid2).

Getting Started
---------------

[](#getting-started)

You can install nurfachmi/cuid2 as a [composer package](https://packagist.org/packages/nurfachmi/cuid2):

```
composer require nurfachmi/cuid2
```

Quick Example
-------------

[](#quick-example)

```
