primipilus / guid
Guid object
Installs: 4 368
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >=7.1
- ramsey/uuid: ^3.7
This package is auto-updated.
Last update: 2025-03-14 23:34:22 UTC
README
Composer install
composer require "primipilus/guid:~2.0"
Usage
$guid = new \primipilus\guid\Guid(); $guid->generate(); echo $guid;
Methods
$guid = new \primipilus\guid\Guid(); // methods of guid: $guid->generate(); $guid->isValid(); $guid->isZero(); $guid->getValue(); echo $guid; $guid = \primipilus\guid\GuidHelper::createGeneratedGuid(); $guid = \primipilus\guid\GuidHelper::createGuid('80d58e0c-2524-cb83-208f-954807f1537b'); $guid = \primipilus\guid\GuidHelper::createZeroGuid(); \primipilus\guid\GuidHelper::validate('80d58e0c-2524-cb83-208f-954807f1537b'); \primipilus\guid\GuidHelper::zero('00000000-0000-0000-0000-000000000000'); \primipilus\guid\GuidHelper::generateValue();