Skip to content
/ tsid Public

Generates unique-guaranteed identifiers, based on current timestamp

Notifications You must be signed in to change notification settings

antikirra/tsid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TSID | TimeStampable IDentifier

Packagist Dependency Version Packagist Version

Generates unique and guaranteed identifiers based on the current timestamp.

Install

composer require antikirra/tsid:^2

Basic usage

<?php

use function Antikirra\tsid;
use function Antikirra\tsids;

require __DIR__ . '/vendor/autoload.php';

echo tsid(); // 1706568434352340992

var_dump(tsids(2)); // array(2) { [0] => int(1706568434352360960) [1] => int(1706568434352361984) }

About

Generates unique-guaranteed identifiers, based on current timestamp

Topics

Resources

Stars

Watchers

Forks

Languages