{"id":21681774,"url":"https://github.com/cbschuld/php-uuid-base58","last_synced_at":"2026-03-10T01:31:04.383Z","repository":{"id":62500280,"uuid":"254751444","full_name":"cbschuld/php-uuid-base58","owner":"cbschuld","description":"Generates a RFC4122 compliant v4 UUID and returns it encoded in base-58. This is great for creating unique IDs which only consume 22 characters of storage. Also provides base-58 encoding and decoding.","archived":false,"fork":false,"pushed_at":"2020-04-11T01:06:13.000Z","size":15,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-30T02:39:31.882Z","etag":null,"topics":["base58","php","php7","uuid","uuid-v4"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cbschuld.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-10T22:50:39.000Z","updated_at":"2023-03-09T01:32:34.000Z","dependencies_parsed_at":"2022-11-02T12:01:29.053Z","dependency_job_id":null,"html_url":"https://github.com/cbschuld/php-uuid-base58","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/cbschuld/php-uuid-base58","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbschuld%2Fphp-uuid-base58","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbschuld%2Fphp-uuid-base58/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbschuld%2Fphp-uuid-base58/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbschuld%2Fphp-uuid-base58/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cbschuld","download_url":"https://codeload.github.com/cbschuld/php-uuid-base58/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbschuld%2Fphp-uuid-base58/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30320885,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T20:05:46.299Z","status":"ssl_error","status_checked_at":"2026-03-09T19:57:04.425Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["base58","php","php7","uuid","uuid-v4"],"created_at":"2024-11-25T15:31:21.222Z","updated_at":"2026-03-10T01:31:04.354Z","avatar_url":"https://github.com/cbschuld.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# php-uuid-base58\n\n\u003cp\u003e\n    \u003cimg src=\"https://img.shields.io/travis/cbschuld/php-uuid-base58/master?style=flat-square\"/\u003e\n    \u003cimg src=\"https://img.shields.io/packagist/l/cbschuld/php-uuid-base58?style=flat-square\"/\u003e\n    \u003cimg src=\"https://img.shields.io/packagist/dm/cbschuld/php-uuid-base58?style=flat-square\"/\u003e\n\u003c/p\u003e\n\nGenerates a RFC4122 compliant v4 UUID and returns it encoded in base-58. This is great for creating unique IDs which only consume 22 characters of storage. Also provides base-58 encoding and decoding.\n\n## Installation\n\n```sh\ncomposer require cbschuld/php-uuid-base58\n```\n\n## Usage\n\n```php\n\nuse cbschuld\\UuidBase58;\n\n$id = UuidBase58::id();\n```\n\n## API\n\nThe UuidBase58 class provides three static functions\n\n+ `id` - creates the RFC4122 v4 UUID encoded in base-58\n+ `encode(string)` - encodes a base-16 string in base-58\n+ `decode(string)` - decodes a string from base-58 to base-16\n\n## Testing\n\n```sh\nnpm run test\n```\n\n## Performance Hit\n\nThere is an additional performance hit to translate a v4 UUID into base58.  In testing I found the overhead for the translation to base58 adds an additional 31%.  In 100k calculation batches I found that v4 uuid calculation took 1.606s/100k vs 2.319s/100k for uuid58.  Thus, 69% of the runtime was consumed calculating a v4 uuid.  Additional work could be done to bring the uuid calculation internal and attempt to increase performance.\n\n## Base58 Alphabet\n\nThis solution uses the Bitcoin / IPFS hash alphabet: 123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz\n\n[Additional information on Base-58](https://en.wikipedia.org/wiki/Base58).\n\n## Contact\n\n**Twitter** - @cbschuld\n\n## Contributing\n\nYes, thank you!  Please update the docs and tests and add your name to the package.json file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcbschuld%2Fphp-uuid-base58","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcbschuld%2Fphp-uuid-base58","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcbschuld%2Fphp-uuid-base58/lists"}