https://github.com/zircote/uuid
Uuid object for PHP
https://github.com/zircote/uuid
Last synced: about 1 year ago
JSON representation
Uuid object for PHP
- Host: GitHub
- URL: https://github.com/zircote/uuid
- Owner: zircote
- Created: 2012-11-01T02:29:26.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2024-04-02T18:15:27.000Z (about 2 years ago)
- Last Synced: 2024-04-24T15:13:38.390Z (about 2 years ago)
- Language: PHP
- Homepage: https://github.com/zircote/Uuid
- Size: 133 KB
- Stars: 6
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE-2.0.txt
Awesome Lists containing this project
README
Uuid
====
[](http://travis-ci.org/zircote/Uuid)
Uuid Object
Use:
==========
```php
var_dump(\Uuid\Uuid::generate());
// string(36) "bb39ae2d-44aa-9e82-9c55-d326c4f12f56"
var_dump(\Uuid\Uuid::generate('7bda4f1062bb11df9e4d5ecec8f8ce7d'));
// string(36) "7bda4f10-62bb-11df-9e4d-5ecec8f8ce7d"
$uuid = new \Uuid\Uuid;
echo $uuid;
// 324e26b2-3378-3c56-6f72-424b3e20b106
```
[](https://bitdeli.com/free "Bitdeli Badge")