承接 arokettu/uuid-doctrine 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

arokettu/uuid-doctrine

最新稳定版本:2.0.6

Composer 安装命令:

composer require arokettu/uuid-doctrine

包简介

Doctrine support for arokettu/uuid

README 文档

README

Packagist PHP License Gitlab pipeline status Codecov

arokettu/uuid column classes and ID generators for Doctrine.

Installation

composer require arokettu/uuid-doctrine
  • Version 1.x is for doctrine/dbal v3
  • Version 2.x is for doctrine/dbal v4

The versions are fully interchangeable except for hard dependency on DBAL.

Usage

<?php

use Arokettu\Uuid\Doctrine\{UuidType,UuidV4Generator};
use Arokettu\Uuid\Uuid;
use Doctrine\ORM\Mapping\{Column,CustomIdGenerator,Entity,GeneratedValue,Id,Table};

#[Entity, Table(name: 'uuid_object')]
class UuidObject
{
    #[Column(type: UuidType::NAME)]
    #[Id, GeneratedValue(strategy: 'CUSTOM'), CustomIdGenerator(UuidV4Generator::class)]
    public Uuid $id;

    #[Column(type: UuidType::NAME)]
    public Uuid $uuidString;
}

Documentation

Read full documentation for the base library here: https://sandfox.dev/php/uuid.html

Also on Read the Docs: https://arokettu-uuid.readthedocs.io/

Support

Please file issues on our main repo at GitLab: https://gitlab.com/sandfox/php-uuid/-/issues

Feel free to ask any questions in our room on Gitter: https://gitter.im/arokettu/community

Both 1.x and 2.x versions are actively supported.

License

The library is available as open source under the terms of the MIT License.

统计信息

  • 总下载量: 60
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-07-11