brilliantpackages/filemaker-uuid

A package to generate a FileMaker-compatible numeric UUID.

Installs: 735

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

pkg:composer/brilliantpackages/filemaker-uuid

2.0.0 2023-02-27 18:30 UTC

This package is auto-updated.

Last update: 2025-09-28 00:18:36 UTC


README

A package to generate a FileMaker-compatible numeric UUID.

Compatibility

PHP Package Version
>=8.0 2.x
7.x 1.x

Usage

use BrilliantPackages\FileMakerUuid\Uuid;
$uuid = Uuid::numeric()->toString();

// Results in something like 12063716518403015373000001000000000000000.

Format

A 41-digit delimited number of the form:

  • vrmmmmmmmmmmmmTssssssscccccnnnnnnnnnnnnnnn
  • With version 1 and 2 UUIDs, the sections of the UUID correspond to:
    • v: The UUID version (type) number: 1
    • r: A variant code reserved by the RFC 4122 standard: 2
    • m: The creation timestamp (seconds since 0001-01-01T00:00:00), or as close as we can get with PHP/Unix Epoch
    • s: PHP microseconds
    • c: Random bits ("session key" in FM)
    • n: IP Address as a long ("Device ID" in FM)