{"id":21052154,"url":"https://github.com/fwolf/uuid.php","last_synced_at":"2026-04-27T19:33:23.237Z","repository":{"id":62508455,"uuid":"68795185","full_name":"fwolf/uuid.php","owner":"fwolf","description":"Time Based UUID Generator","archived":false,"fork":false,"pushed_at":"2016-10-13T16:21:57.000Z","size":33,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-20T18:44:12.536Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fwolf.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-21T08:14:05.000Z","updated_at":"2019-10-06T14:25:07.000Z","dependencies_parsed_at":"2022-11-02T10:32:05.553Z","dependency_job_id":null,"html_url":"https://github.com/fwolf/uuid.php","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fwolf%2Fuuid.php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fwolf%2Fuuid.php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fwolf%2Fuuid.php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fwolf%2Fuuid.php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fwolf","download_url":"https://codeload.github.com/fwolf/uuid.php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243497112,"owners_count":20300197,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-19T16:00:47.911Z","updated_at":"2025-12-26T20:45:57.552Z","avatar_url":"https://github.com/fwolf.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Time Based UUID Generator\n\n\n[![Travis](https://travis-ci.org/fwolf/uuid.php.svg?branch=master)](https://travis-ci.org/fwolf/uuid.php)\n[![Latest Stable Version](https://poser.pugx.org/fwolf/uuid/v/stable)](https://packagist.org/packages/fwolf/uuid)\n[![License](https://poser.pugx.org/fwolf/uuid/license)](https://packagist.org/packages/fwolf/uuid)\n[![SensioLabsInsight](https://insight.sensiolabs.com/projects/0b69a67a-56ee-4124-a8bb-5ecab610759d/mini.png)](https://insight.sensiolabs.com/projects/0b69a67a-56ee-4124-a8bb-5ecab610759d)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/fwolf/uuid.php/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/fwolf/uuid.php/?branch=master)\n\n\nGenerate time based UUID, with custom format and length.\n\nUUIDs follow alphabetical order, more suitable for database primary key.\n\nShort UUID save more space, and little more eye candy.\n\nCheck digit can determine if an UUID is valid, maybe useful.\n\n\n## Install\n\n    composer require fwolf/uuid:~1.1\n\n\n## UUID Types\n\n|         Name         |                  FQN                 | Length |                Example               |\n|:--------------------:|:------------------------------------:|:------:|:------------------------------------:|\n| Base16               | Fwolf\\Util\\Uuid\\Base16               |   36   | 57fbbc3d-afca-0001-5962-39f13698e4fe |\n| Base16WithCheckDigit | Fwolf\\Util\\Uuid\\Base16WithCheckDigit |   36   | 57fbbc3d-afd6-0001-5962-66ede233d441 |\n| Base36               | Fwolf\\Util\\Uuid\\Base36               |   25   | 1bjzaogobg01b0tjd6q2qx6t9            |\n| Base36Short          | Fwolf\\Util\\Uuid\\Base36Short          |   16   | 1bjzaogok11ggcm5                     |\n| Base62               | Fwolf\\Util\\Uuid\\Base62               |   24   | 1BTD4N3MsO01qbPidY17hfOz             |\n| Base62Short          | Fwolf\\Util\\Uuid\\Base62Short          |   15   | 10L1XTQ9s1Ip2Og                      |\n\nBy inherit these classes and modify constant value, you can:\n\n- Define length of each part\n- Enable check digit\n- Change of enable/disable separator between parts\n\n\n## Usage\n\n```php\nuse Fwolf\\Util\\Uuid\\Base36;\n\n$generator = new Base36();\n\n$uuid = $generator-\u003egenerate();\necho \"Generated UUID: {$uuid}\";\n// Result: Generated UUID: 1bjzaogobg01b0tjd6q2qx6t9\n```\n\nThere are some utility scripts in `bin` directory:\n\n- `explain.php` Disassemble UUID to parts and generated time\n- `find-offset-base36.php` Find latest offset timestamp for Base36\n- `find-offset-base62Short.php` Find latest offset timestamp for Base36Short\n\n\n## License\n\nDistribute under MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffwolf%2Fuuid.php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffwolf%2Fuuid.php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffwolf%2Fuuid.php/lists"}