https://github.com/igniphp/uuid
https://github.com/igniphp/uuid
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/igniphp/uuid
- Owner: igniphp
- Created: 2018-05-12T07:27:06.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-28T06:50:44.000Z (almost 8 years ago)
- Last Synced: 2025-05-26T16:07:08.396Z (about 1 year ago)
- Language: PHP
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 
[](https://travis-ci.org/igniphp/uuid)
## Igni\Util\UuidGenerator
RFC-compliant Universally Unique Identifiers v5 generator.
## Installation
```
composer require igniphp/uuid
```
### API
#### `generate(): string`
Generates uuid.
#### `generateShort(): string`
Generates shorter representation of uuid (base58 encoded).
#### `toShort(string $string): string`
Shorts uuid by packing it into base58 representation.
#### `fromShort(string $string): string`
Returns full uuid as a string from base58 representation.
#### `validate(string $string): bool`
Validates if passed string is valid uuid number.