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

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

wooserv/php-objectid
====================

Fast, lightweight MongoDB-style ObjectId generator for PHP.

v1.0.0(6mo ago)13574↓33.3%[3 issues](https://github.com/wooserv/php-objectid/issues)1MITPHPPHP &gt;=8.1CI passing

Since Nov 9Pushed 6mo agoCompare

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

READMEChangelogDependencies (1)Versions (2)Used By (1)

PHP ObjectId
============

[](#php-objectid)

**Fast, lightweight MongoDB-style ObjectId generator for PHP.**

[![Tests](https://github.com/wooserv/php-objectid/actions/workflows/tests.yml/badge.svg)](https://github.com/wooserv/php-objectid/actions/workflows/tests.yml)[![License](https://camo.githubusercontent.com/46b07a0eb41e430402a1957d44886d5d62ba74fc7f1a30fb7dfc217b5a25a1bd/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f776f6f736572762f7068702d6f626a65637469642e737667)](LICENSE)

---

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

[](#installation)

```
composer require wooserv/php-objectid
```

Usage
-----

[](#usage)

```
use WooServ\ObjectId\ObjectId;

$id = ObjectId::generate();

if (ObjectId::isValid($id)) {
    echo "Timestamp: " . date('Y-m-d H:i:s', ObjectId::getTimestamp($id));
}
```

Tests
-----

[](#tests)

```
composer test
```

---

License
-------

[](#license)

MIT © [WooServ](https://www.wooserv.com/)

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance63

Regular maintenance activity

Popularity25

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity44

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

191d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/24924319?v=4)[Hamada Habib](/maintainers/ihfbib)[@ihfbib](https://github.com/ihfbib)

---

Top Contributors

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

---

Tags

objectidphp

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[magepow/ajaxcart

Magepow Ajax Add To Cart

174.0k](/packages/magepow-ajaxcart)

PHPackages © 2026

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