承接 nextras/orm-brick-date-time 相关项目开发

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

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

nextras/orm-brick-date-time

Composer 安装命令:

composer require nextras/orm-brick-date-time

包简介

Nextras Orm's integration for Brick/DateTime

README 文档

README

Build Status Downloads this Month Stable Version Packagist PHP Version Support

Property wrappers and ORM extension integrating brick/date-time types with Nextras ORM.

Supported Types

PHP type MySQL Storage Postgres Storage DBAL modifier
Brick\DateTime\Instant TIMESTAMP TIMESTAMPTZ %dt
Brick\DateTime\LocalDateTime DATETIME TIMESTAMP %ldt
Brick\DateTime\LocalDate DATE / VARCHAR DATE / VARCHAR %s

Installation

composer require nextras/orm-brick-date-time

Usage

Register the extension in your Nette configuration. Typically, using NEON configuration:

extensions:
    nextras.orm: Nextras\Orm\Bridges\NetteDI\OrmExtension

nextras.orm:
    extensions:
        @Nextras\OrmBrickDateTime\OrmBrickDateTimeExtension

services:
    - Nextras\OrmBrickDateTime\OrmBrickDateTimeExtension

Then use brick/date-time types in your entity property annotations:

use Brick\DateTime\Instant;
use Brick\DateTime\LocalDate;
use Brick\DateTime\LocalDateTime;
use Nextras\Orm\Entity\Entity;

/**
 * @property int              $id
 * @property Instant          $createdAt
 * @property Instant|null     $deletedAt
 * @property LocalDate        $bornOn
 * @property LocalDateTime    $scheduledAt
 */
class User extends Entity
{
}

The extension automatically:

  • assigns the correct property wrapper based on the declared type,
  • configures the DBAL column modifier so values are persisted correctly.

License

MIT. See full license.

统计信息

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

GitHub 信息

  • Stars: 3
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-03-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固