The Composer package implements the stable Identifold 1.0 MID, PID, and REF wire contract for PHP 8.2 and later.
composer require greyfoundry/identifold:^1.0use Greyfoundry\Identifold\Identifold;
$mid = '019d4c72-c910-7a84-b313-53c3ac61a32f';
$pid = Identifold::publicIdFromMachineId($mid, 'order');
$parsed = Identifold::parsePublicId($pid);composer validate --strict
php -d zend.assertions=1 -d assert.exception=1 tests/IdentifoldTest.phpThe 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.