PHPackages                             nextras/orm-brick-date-time - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. nextras/orm-brick-date-time

ActiveLibrary[Database &amp; ORM](/categories/database)

nextras/orm-brick-date-time
===========================

Nextras Orm's integration for Brick/DateTime

30PHPCI passing

Since Mar 1Pushed 2mo ago2 watchersCompare

[ Source](https://github.com/nextras/orm-brick-date-time)[ Packagist](https://packagist.org/packages/nextras/orm-brick-date-time)[ RSS](/packages/nextras-orm-brick-date-time/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Nextras ORM — brick/date-time Integration
=========================================

[](#nextras-orm--brickdate-time-integration)

[![Build Status](https://camo.githubusercontent.com/9801bc3b622e36a9feb60253edba1963aef346449a54ca54a33d855edb480fbf/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6e6578747261732f6f726d2d627269636b2d646174652d74696d652f6275696c642e796d6c3f6272616e63683d6d61696e)](https://github.com/nextras/orm-brick-date-time/actions?query=workflow%3ABuild+branch%3Amain)[![Downloads this Month](https://camo.githubusercontent.com/fa653cc3889ed78e1e22121c73fc7e2c34728a5e8dd8070a60834419213933cc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f6e6578747261732f6f726d2d627269636b2d646174652d74696d652e7376673f7374796c653d666c6174)](https://packagist.org/packages/nextras/orm-brick-date-time)[![Stable Version](https://camo.githubusercontent.com/ed4d54feada615aa504de3c7ca944a03e3a4d1bcc5d7aa9d1fb6ddbd81f3dba7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e6578747261732f6f726d2d627269636b2d646174652d74696d652e7376673f7374796c653d666c6174)](https://packagist.org/packages/nextras/orm-brick-date-time)[![Packagist PHP Version Support](https://camo.githubusercontent.com/90c1539150873e8d1cbbcc7d6701f276147bb105767f46b9b30e5b4bf27730db/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6e6578747261732f6f726d2d627269636b2d646174652d74696d65)](https://packagist.org/packages/nextras/orm-brick-date-time)

Property wrappers and ORM extension integrating [brick/date-time](https://github.com/brick/date-time) types with [Nextras ORM](https://github.com/nextras/orm).

Supported Types
---------------

[](#supported-types)

PHP typeMySQL StoragePostgres StorageDBAL modifier`Brick\DateTime\Instant``TIMESTAMP``TIMESTAMPTZ``%dt``Brick\DateTime\LocalDateTime``DATETIME``TIMESTAMP``%ldt``Brick\DateTime\LocalDate``DATE` / `VARCHAR``DATE` / `VARCHAR``%s`Installation
------------

[](#installation)

```
composer require nextras/orm-brick-date-time
```

Usage
-----

[](#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
-------

[](#license)

MIT. See full [license](license.md).

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance57

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity11

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/953773db6e30161b5e76572bf909c24e8ef07d7419aeebc311e071600ea99bef?d=identicon)[hrach](/maintainers/hrach)

![](https://www.gravatar.com/avatar/6163a0eec16c2bfc9cce0c7c8801b5166cca9af81a146764676059a965044000?d=identicon)[JanTvrdik](/maintainers/JanTvrdik)

---

Top Contributors

[![hrach](https://avatars.githubusercontent.com/u/284263?v=4)](https://github.com/hrach "hrach (6 commits)")

### Embed Badge

![Health badge](/badges/nextras-orm-brick-date-time/health.svg)

```
[![Health](https://phpackages.com/badges/nextras-orm-brick-date-time/health.svg)](https://phpackages.com/packages/nextras-orm-brick-date-time)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.3k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M543](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M209](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
