{"id":18305070,"url":"https://github.com/jop-software/doctrine-uuid-generators","last_synced_at":"2026-04-29T00:33:57.997Z","repository":{"id":56750364,"uuid":"524503557","full_name":"jop-software/doctrine-uuid-generators","owner":"jop-software","description":"Generate UUIDs for your doctrine entities.","archived":false,"fork":false,"pushed_at":"2024-03-04T20:24:18.000Z","size":30,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-24T09:46:22.909Z","etag":null,"topics":["doctrine","doctrine2","hacktoberfest","php","php-library","symfony","uuid","uuid-generators"],"latest_commit_sha":null,"homepage":"","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/jop-software.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-13T20:41:50.000Z","updated_at":"2024-03-04T17:42:59.000Z","dependencies_parsed_at":"2024-11-05T15:51:19.267Z","dependency_job_id":null,"html_url":"https://github.com/jop-software/doctrine-uuid-generators","commit_stats":{"total_commits":13,"total_committers":1,"mean_commits":13.0,"dds":0.0,"last_synced_commit":"ce72c3dc9a73f3091317ccb21246c8bd33705b6f"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/jop-software/doctrine-uuid-generators","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jop-software%2Fdoctrine-uuid-generators","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jop-software%2Fdoctrine-uuid-generators/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jop-software%2Fdoctrine-uuid-generators/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jop-software%2Fdoctrine-uuid-generators/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jop-software","download_url":"https://codeload.github.com/jop-software/doctrine-uuid-generators/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jop-software%2Fdoctrine-uuid-generators/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32405901,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T19:38:08.556Z","status":"ssl_error","status_checked_at":"2026-04-28T19:37:55.688Z","response_time":56,"last_error":"SSL_read: 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":["doctrine","doctrine2","hacktoberfest","php","php-library","symfony","uuid","uuid-generators"],"created_at":"2024-11-05T15:32:35.288Z","updated_at":"2026-04-29T00:33:57.977Z","avatar_url":"https://github.com/jop-software.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\t\u003ch1\u003eDoctrine UUID generators\u003c/h1\u003e\n\t\u003ci\u003eGenerate UUIDs for your doctrine entities\u003c/i\u003e\n\u003c/div\u003e\n\n[![CI](https://github.com/jop-software/doctrine-uuid-generators/actions/workflows/ci.yaml/badge.svg)](https://github.com/jop-software/doctrine-uuid-generators/actions/workflows/ci.yaml)\n[![CI](https://img.shields.io/badge/License-MIT-green)](LICENSE)\n\n## Installation\n\n```shell\ncomposer require jop-software/doctrine-uuid-generators\n```\n\n## Usage\n\nYou can use all the generators in the `CustomIdGenerator` annotation. \n\n```php\n\u003c?php\n\nnamespace App\\Entity;\n\nuse App\\Repository\\EntityNameRepository;\nuse Doctrine\\DBAL\\Types\\Types;\nuse Doctrine\\ORM\\Mapping as ORM;\nuse JopSoftware\\DoctrineUuidGenerators\\UuidV4Generator;\nuse Symfony\\Component\\Uid\\UuidV4;\n\n#[ORM\\Entity(repositoryClass: EntityNameRepository::class)]\nclass EntityName\n{\n    #[ORM\\Id]\n    #[ORM\\GeneratedValue(strategy: 'CUSTOM')]\n    #[ORM\\Column(type: \"uuid\", unique: true)]\n    #[ORM\\CustomIdGenerator(class: UuidV4Generator::class)]\n    private UuidV4|null $id = null;\n    \n    public function getId(): UuidV4|null\n    {\n        return $this-\u003eid;\n    }\n}\n```\n\n## Available generators\n\n- [UuidV1Generator](src/UuidV1Generator.php)\n- [UuidV4Generator](src/UuidV4Generator.php)\n- [UuidV6Generator](src/UuidV6Generator.php)\n- [UlidGenerator](src/UlidGenerator.php)\n\n\u003e Versions 3 and 5 are not implemented currently, because they are namespace based and there is no way currently to \n\u003e pass such a namespace to the generator in the `CustomIdGenerator` annotation. \n\n## Versions\n\n| Version | State | `php` Version |\n| --- | --- | --- |\n| `2.x` | ![Supported](https://img.shields.io/badge/active_support-green?style=for-the-badge) | `^8.1` |\n| `1.x` | ![Security Support](https://img.shields.io/badge/security_and_enterprise-orange?style=for-the-badge) | `^8.0` |\n\n\n## Professional support\n\nProfessional support is available. Please contact [support@jop-software.de](mailto:support@jop-software.de) for more information.\n\n## License\n\nThis project is licensed under the [MIT LICENSE](LICENSE)\n\n\u003cdiv align=\"center\"\u003e\n\t\u003cspan\u003e\u0026copy; 2022-2024, jop-software Inh. Johannes Przymusinski\u003c/span\u003e\n\u003c/div\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjop-software%2Fdoctrine-uuid-generators","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjop-software%2Fdoctrine-uuid-generators","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjop-software%2Fdoctrine-uuid-generators/lists"}