PHPackages                             tawfekov/objectid - 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. tawfekov/objectid

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

tawfekov/objectid
=================

Unique Id generator inspired by mongodb object id

1826PHP

Since Oct 7Pushed 11y ago1 watchersCompare

[ Source](https://github.com/tawfekov/ObjectId)[ Packagist](https://packagist.org/packages/tawfekov/objectid)[ RSS](/packages/tawfekov-objectid/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

======== ObjectId
=================

[](#objectid)

Unique Id generator inspired by mongodb object id

Overview
--------

[](#overview)

`ObjectId ` is a 12-byte `String` type, constructed using:

- a 4-byte value representing the seconds since the Unix epoch or some folks call it `unix timestamp`
- a 3-byte machine identifier `hostname`
- a 2-byte process id
- a 3-byte counter, starting with a random value.

In `RDMS`, records stored in a table require a unique id field that acts as a primary key. Because ObjectIds are small, most likely unique, and fast to generate you may want to use it in your next project

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/94997?v=4)[Tawfek Daghistani](/maintainers/tawfekov)[@tawfekov](https://github.com/tawfekov)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/tawfekov-objectid/health.svg)

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

###  Alternatives

[beberlei/composer-monorepo-plugin

312504.5k](/packages/beberlei-composer-monorepo-plugin)[libern/qr-code-reader

Simple PHP QR Code Reader / Decoder

96241.0k3](/packages/libern-qr-code-reader)[mcred/detect-credit-card-type

Utility to determine credit card type by PAN

14682.1k1](/packages/mcred-detect-credit-card-type)[rych/random

Random data generator for PHP

14450.6k9](/packages/rych-random)[olifanton/interop

Olifanton interop library

1071.8k3](/packages/olifanton-interop)[nebkam/symfony-traits

Helper trait to ease writing APIs in Symfony

157.3k](/packages/nebkam-symfony-traits)

PHPackages © 2026

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