{"id":15412157,"url":"https://github.com/maymeow/uuid","last_synced_at":"2025-03-28T03:15:47.472Z","repository":{"id":45749391,"uuid":"81978728","full_name":"MayMeow/uuid","owner":"MayMeow","description":"Simple library to generating RFC 4122 version 3,4 and 5 UUID (Universaly Unique Identifier).","archived":false,"fork":false,"pushed_at":"2023-02-03T09:39:19.000Z","size":33,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-05-02T01:59:42.489Z","etag":null,"topics":["php","uuid-generator"],"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/MayMeow.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null},"funding":{"github":"maymeow","ko_fi":"maymeow"}},"created_at":"2017-02-14T18:59:22.000Z","updated_at":"2022-03-25T12:34:35.000Z","dependencies_parsed_at":"2023-02-18T05:31:04.731Z","dependency_job_id":null,"html_url":"https://github.com/MayMeow/uuid","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MayMeow%2Fuuid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MayMeow%2Fuuid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MayMeow%2Fuuid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MayMeow%2Fuuid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MayMeow","download_url":"https://codeload.github.com/MayMeow/uuid/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245960815,"owners_count":20700781,"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":["php","uuid-generator"],"created_at":"2024-10-01T16:51:27.323Z","updated_at":"2025-03-28T03:15:47.329Z","avatar_url":"https://github.com/MayMeow.png","language":"PHP","funding_links":["https://github.com/sponsors/maymeow","https://ko-fi.com/maymeow"],"categories":[],"sub_categories":[],"readme":"# UUID generator\n\n*Message from creator* \u003cbr /\u003e\n*Thank you for visiting the **@maymeow/uuid** project. I found that this project was downloaded nearly 50k times. If you found this project useful I encourage you to star this project. Staring a prepository here on Github is one of the ways to show support for the project and can hepl to increase visibility and to let the community know that is a valuable. Thank you!*\n\n*May*\n\nSimple library to generating RFC 4122 version 3,4 and 5 UUID (Universaly Unique Identifier).\n\nFrom [Wikipedia](https://en.wikipedia.org/wiki/Universally_unique_identifier):A universally unique identifier (UUID) is a 128-bit number used to identify information in computer systems. Microsoft uses the term globally unique identifier (GUID), either as a synonym for UUID or to refer to a particular UUID variant.\n\n## Requirements\n\n* PHP 5.5 and up\n* Composer\n\n## Installation\n\n```bash\ncomposer require maymeow/uuid\n```\n\n## Usage\n\n### Generating UUID v3\n\nInclude uuid factory in your project\n\n```php\nuse MayMeow\\UuidFactory;\n```\n\nTo generate UUID version 3 from namespace and name:\n\n```php\n// Version 3 uuid for DNS\n$uuidv3 = Uuid::v3(Uuid::NAMESPACE_DNS, 'test.maymeow.click');\n\n// From v2.0\n$uuidv3 = UuidFactory::v3(UuidFactory::NAMESPACE_DNS, 'test.maymeow.click');\n```\n\n### Generating UUID v4\n\nTo generate UUID version 3 - random UUID\n\n```php\n// Version 3 uuid for DNS\n$uuidv4 = Uuid::v4();\n\n// From v2.0\n$uuidv4 = UuidFactory::v4();\n```\n\n### Generating UUID v5\n\nTo generate UUID version 5 from namespace and name:\n\n```php\n// Version 5 uuid for DNS\n$uuidv3 = Uuid::v5(Uuid::NAMESPACE_DNS, 'test.maymeow.click');\n\n//From version 2.0 use UuidFactory instead of Uuid\n$uuidv3 = UuidFactory::v5(UuidFactory::NAMESPACE_DNS, 'test.maymeow.click');\n```\n\n### Checking if uuid is valid\n\n```php\n// Version 3 uuid for DNS\n$response = Uuid::is_valid('454eb932-adf4-52a5-9285-31ccebc92e96');\n\n// From v2.0\n$response = UuidFactory::is_valid('454eb932-adf4-52a5-9285-31ccebc92e96');\n```\n\n## Contributing\n\n1. Fork it!\n2. Create your feature branch: `git checkout -b my-new-feature`\n3. Commit your changes: `git commit -am 'Add some feature'`\n4. Push to the branch: `git push origin my-new-feature`\n5. Submit a pull request.\n\n## Credits\n\n[May Meow](https://github.com/MayMeow)\n## License\n\n[MIT](/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaymeow%2Fuuid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaymeow%2Fuuid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaymeow%2Fuuid/lists"}