jeyroik/extas-id

There is no license information available for the latest version (0.2.0) of this package.

Extas ID package

0.2.0 2022-11-21 14:45 UTC

This package is auto-updated.

Last update: 2024-10-21 18:39:52 UTC


README

PHP Composer codecov.io Latest Stable Version Total Downloads Dependents

extas-id

Tools for working with ID

using

use extas\interfaces\IHaveStringid;
use extas\components\THasStringId;
use extas\components\UUID;

class My implements IHaveStringId
{
    use THasStringId;

    protected array $config = [];
}

$my = new My();

UUID::setId($my, 4); 
echo $my->getId();// something like 0a961099-fd10-4f89-a128-2ae7c8ae5fef