friendsofhyperf / model-uid-addon
The ULID/UUID addon for Hyperf Model.
Fund package maintenance!
huangdijia
hdj.me/sponsors
Requires
- php: ^8.0
- hyperf/database: ~3.0.0
- hyperf/event: ~3.0.0
- hyperf/stringable: ~3.0.0
- hyperf/support: ~3.0.1
- ramsey/uuid: ^4.7
- symfony/uid: ^5.0|^6.0
Conflicts
- hyperf/database: >=3.0.9
- 3.x-dev
- dev-main / 3.1.x-dev
- 3.0.x-dev
- v3.0.112
- v3.0.85
- v3.0.80
- v3.0.70
- v3.0.55
- v3.0.52
- v3.0.51
- v3.0.44
- v3.0.42
- v3.0.35
- v3.0.28
- v3.0.22
- v3.0.16
- v3.0.14
- v3.0.5
- v3.0.2
- v3.0.0
- v3.0.0-rc.46
- v3.0.0-rc.32
- v3.0.0-rc.31
- v3.0.0-rc.16
- v0.1.0
- v0.1.0-beta.5
- v0.1.0-beta.4
- v0.1.0-beta.3
- v0.1.0-beta.2
- v0.1.0-beta.1
This package is auto-updated.
Last update: 2024-10-25 02:04:22 UTC
README
The ULID/UUID addon for Hyperf Model.
This feature has been migrated to
hyperf/database
, if you are usinghyperf/database > 3.0.9
, You don't need to install this extension.
Installation
- Request
composer require friendsofhyperf/model-uid-addon # ulid composer require symfony/uid # uuid composer require ramsey/uuid:^4.7
Usage
<?php namespace App\Model; use Hyperf\Database\Model\Concerns\HasUlids; class Article extends Model { use HasUlids; // ... }
Sponsor
If you like this project, Buy me a cup of coffee. [ Alipay | WePay ]