{"id":20678886,"url":"https://github.com/phpgt/ulid","last_synced_at":"2026-04-21T11:07:18.097Z","repository":{"id":37014103,"uuid":"455655293","full_name":"phpgt/Ulid","owner":"phpgt","description":"Unique, lexicographically sortable identifiers.","archived":false,"fork":false,"pushed_at":"2023-10-31T17:43:01.000Z","size":78,"stargazers_count":0,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-07T12:08:36.867Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/phpgt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["phpgt"]}},"created_at":"2022-02-04T18:29:57.000Z","updated_at":"2022-05-08T16:07:34.000Z","dependencies_parsed_at":"2023-02-12T00:20:16.295Z","dependency_job_id":"90425978-ad9b-488c-a809-7bcd33327f88","html_url":"https://github.com/phpgt/Ulid","commit_stats":{"total_commits":14,"total_committers":1,"mean_commits":14.0,"dds":0.0,"last_synced_commit":"6fdbf83672c98013d530d2fb469768602b505aff"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpgt%2FUlid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpgt%2FUlid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpgt%2FUlid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpgt%2FUlid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phpgt","download_url":"https://codeload.github.com/phpgt/Ulid/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242911356,"owners_count":20205480,"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-16T21:22:55.783Z","updated_at":"2026-04-21T11:07:18.092Z","avatar_url":"https://github.com/phpgt.png","language":"PHP","funding_links":["https://github.com/sponsors/phpgt"],"categories":[],"sub_categories":[],"readme":"Unique, lexicographically sortable identifiers.\n===============================================\n\nCreate a `new Ulid()` anywhere in your application, and you have a stringable object that can be used as the primary key in a database. Ulid strings look something like `01G2J6MYN0PGC5Q21W9C` or can be prefixed with a type like `CUSTOMER_01G2J6MYN0PGC5Q21W9C`. They are cryptographically pseudo-random, and sort so that newer Ulids compare \"greater than\" older Ulids.\n\nThis solves the problems exposed with working with auto-incrementing integer primary keys, which are predictable and difficult to work with in distributed databases.\n\n***\n\n\u003ca href=\"https://github.com/PhpGt/Ulid/actions\" target=\"_blank\"\u003e\n\t\u003cimg src=\"https://badge.status.php.gt/ulid-build.svg\" alt=\"Build status\" /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://app.codacy.com/gh/PhpGt/Ulid\" target=\"_blank\"\u003e\n\t\u003cimg src=\"https://badge.status.php.gt/ulid-quality.svg\" alt=\"Code quality\" /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://app.codecov.io/gh/PhpGt/Ulid\" target=\"_blank\"\u003e\n\t\u003cimg src=\"https://badge.status.php.gt/ulid-coverage.svg\" alt=\"Code coverage\" /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://packagist.org/packages/PhpGt/Ulid\" target=\"_blank\"\u003e\n\t\u003cimg src=\"https://badge.status.php.gt/ulid-version.svg\" alt=\"Current version\" /\u003e\n\u003c/a\u003e\n\u003ca href=\"http://www.php.gt/ulid\" target=\"_blank\"\u003e\n\t\u003cimg src=\"https://badge.status.php.gt/ulid-docs.svg\" alt=\"PHP.Gt/Ulid documentation\" /\u003e\n\u003c/a\u003e\n\n## Example usage:\n\n```php\nuse GT\\Ulid\\Ulid;\n\n$exampleDataSource-\u003ecreate(new Person(\n\tnew Ulid(\"pet\"),\n\tname: \"Cody\",\n\tage: 5,\n));\n```\n\n# Proudly sponsored by\n\n[JetBrains Open Source sponsorship program](https://www.jetbrains.com/community/opensource/)\n\n[![JetBrains logo.](https://resources.jetbrains.com/storage/products/company/brand/logos/jetbrains.svg)](https://www.jetbrains.com/community/opensource/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphpgt%2Fulid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphpgt%2Fulid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphpgt%2Fulid/lists"}