Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fast, lightweight MongoDB-style ObjectId generator for PHP.

License

Notifications You must be signed in to change notification settings

wooserv/php-objectid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

4 Commits

Repository files navigation

PHP ObjectId

Fast, lightweight MongoDB-style ObjectId generator for PHP.

Tests License


Installation

composer require wooserv/php-objectid

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

composer test

License

MIT © WooServ

About

Fast, lightweight MongoDB-style ObjectId generator for PHP.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /