PHPackages                             gepur-it/datetime\_6\_doctrine\_type - 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. gepur-it/datetime\_6\_doctrine\_type

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

gepur-it/datetime\_6\_doctrine\_type
====================================

Gepur ERP datetime(6) doctrine type

5.1.0(5y ago)08.5kMITPHPPHP &gt;=7.1

Since Feb 24Pushed 5y ago2 watchersCompare

[ Source](https://github.com/gepur-it/datetime_6_doctrine_type)[ Packagist](https://packagist.org/packages/gepur-it/datetime_6_doctrine_type)[ Docs](https://github.com/gepur-it/datetime_6_doctrine_type)[ RSS](/packages/gepur-it-datetime-6-doctrine-type/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

---

How to write doctrine type "datetime(6)"
----------------------------------------

[](#how-to-write-doctrine-type-datetime6)

### to your Symfony project

[](#to-your-symfony-project)

Add `datetime(6):  GepurIt\TinyintType\Datetime6DoctrineType` to types of dbal in doctrine. See example:

```
# Doctrine Configuration
doctrine:
    dbal:
        default_connection: default
        connections:
            default:     .gitignore.gitignore
            some_other:

        datetime(6):
            class: GepurIt\Datetime6Type\Datetime6DoctrineType
            commented: false
```

SQL type = 'DATETIME(6)'.

Example of entity:

```
namespace YourBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use JMS\Serializer\Annotation as JMS;
use Symfony\Component\Validator\Constraints as Assert;

/** Class EntityWithEmailField
  * @package YourBundle\Entity
  *
  * @ORM\Table(
  *     name="your_table_name",
  *     options={"collate"="utf8mb4_unicode_ci", "charset"="utf8mb4"}
  * )
  * @ORM\Entity(repositoryClass="YourBundle\Repository\EntityWithTynyintFieldRepository")
  */
class EntityWithDatetime6Field
{
    /**
     * @var integer
     *
     * @ORM\Column(name="created_at", type="datetime(6)", nullable=false)
     */
    protected $createdAt = 0;

    /**
     * @return \DateTime
     */
    public function getDirection(): \DateTime
    {
        return $this->createdAt;
    }

    /**
     * @param \DateTime $createdAt
     */
    public function setDirection(\DateTime $createdAt): \DateTime
    {
        $this->createdAt = $createdAt;
    }
}
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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.

###  Release Activity

Cadence

Every ~413 days

Total

2

Last Release

1856d ago

PHP version history (2 changes)5.0.0PHP ^7.

5.1.0PHP &gt;=7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/b44ec6e263de3ca4efc54fd278a809b9bbf77eb85b0ebe5021c5408705e435be?d=identicon)[gepur-it](/maintainers/gepur-it)

---

Top Contributors

[![maritechpro](https://avatars.githubusercontent.com/u/30262797?v=4)](https://github.com/maritechpro "maritechpro (1 commits)")[![zogxray](https://avatars.githubusercontent.com/u/3336180?v=4)](https://github.com/zogxray "zogxray (1 commits)")

---

Tags

symfonytypedoctrinedatetime

### Embed Badge

![Health badge](/badges/gepur-it-datetime-6-doctrine-type/health.svg)

```
[![Health](https://phpackages.com/badges/gepur-it-datetime-6-doctrine-type/health.svg)](https://phpackages.com/packages/gepur-it-datetime-6-doctrine-type)
```

###  Alternatives

[symfony/property-info

Extracts information about PHP class' properties using metadata of popular sources

2.2k256.7M854](/packages/symfony-property-info)[fresh/doctrine-enum-bundle

Provides support of ENUM type for Doctrine2 in Symfony applications.

4636.8M12](/packages/fresh-doctrine-enum-bundle)[vasek-purchart/doctrine-date-time-immutable-types-bundle

Bundle integration of Doctrine DateTimeImmutable types for Symfony

1085.6k](/packages/vasek-purchart-doctrine-date-time-immutable-types-bundle)[vasek-purchart/doctrine-date-time-immutable-types

Doctrine DateTimeImmutable types

42228.3k](/packages/vasek-purchart-doctrine-date-time-immutable-types)[okapon/doctrine-set-type-bundle

Provides support of MySQL SET type for Doctrine2 in Symfony2 applications.

11159.0k](/packages/okapon-doctrine-set-type-bundle)

PHPackages © 2026

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