greyfoundry / identifold
Identifold 1.0 identifiers for PHP
v1.0.0
2026-08-29 20:19 UTC
Requires
- php: >=8.2
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
The Composer package implements the stable Identifold 1.0 MID, PID, and REF wire contract for PHP 8.2 and later.
Install
composer require greyfoundry/identifold:^1.0
Quick start
use Greyfoundry\Identifold\Identifold; $mid = '019d4c72-c910-7a84-b313-53c3ac61a32f'; $pid = Identifold::publicIdFromMachineId($mid, 'order'); $parsed = Identifold::parsePublicId($pid);
Verification
composer validate --strict php -d zend.assertions=1 -d assert.exception=1 tests/IdentifoldTest.php
The dependency-free core and JSON adapter are exercised by the complete language-neutral conformance suite. Version 1.0.0 is live through Packagist and the public PHP split repository.