PHPackages                             litipk/doctrine-mongodb-jiffy - 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. litipk/doctrine-mongodb-jiffy

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

litipk/doctrine-mongodb-jiffy
=============================

Type adapter for Jiffy's Universal Timestamps on Doctrine MongoDB ODM

1.0.0(10y ago)2813MITPHPPHP &gt;=5.5.0

Since Nov 7Pushed 10y ago1 watchersCompare

[ Source](https://github.com/Litipk/doctrine-mongodb-jiffy)[ Packagist](https://packagist.org/packages/litipk/doctrine-mongodb-jiffy)[ RSS](/packages/litipk-doctrine-mongodb-jiffy/feed)WikiDiscussions master Synced today

READMEChangelog (5)Dependencies (2)Versions (6)Used By (0)

Doctrine ODM MongoDB adapter for Jiffy Universal Timestamps
===========================================================

[](#doctrine-odm-mongodb-adapter-for-jiffy-universal-timestamps)

[![Author](https://camo.githubusercontent.com/a73e47e098ffe2d5b6933f841d4eb307c126af42834866e830e611728c3890fb/687474703a2f2f696d672e736869656c64732e696f2f62616467652f617574686f722d40636173746172636f2d626c75652e7376673f7374796c653d666c61742d737175617265)](https://twitter.com/castarco)[![Quality Score](https://camo.githubusercontent.com/eb94b10b372805b35f13975fce5963565e134b47e76b5433f489f54594d400d2/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6c697469706b2f646f637472696e652d6d6f6e676f64622d6a696666792e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/litipk/doctrine-mongodb-jiffy)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Packagist Version](https://camo.githubusercontent.com/0cd33e0546cdd66b6da7cd52ca388df7710c328d77926f2f2578666726c88992/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f4c697469706b2f646f637472696e652d6d6f6e676f64622d6a696666792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/Litipk/doctrine-mongodb-jiffy)[![Total Downloads](https://camo.githubusercontent.com/3de57dc861fa0cbf3df8ba75887225ec304e92de0ee9d4d98110f2537272e6c1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c697469706b2f646f637472696e652d6d6f6e676f64622d6a696666792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/litipk/doctrine-mongodb-jiffy)

About the library
-----------------

[](#about-the-library)

PHP does not offer any native class to implement timestamps with milliseconds or microseconds precision, the only "native" way to do it is working with the weird `microtime` function and/or the `\MongoDate` class.

This library provides a Doctrine ODM type to make possible using the [PHP-Jiffy's UniversalTimestamp](https://github.com/Litipk/php-jiffy) objects in our Doctrine ODM models. It's very useful if you need to deal with very precise timestamps but you don't want to couple your code with the `\MongoDate` class without giving up on type hinting.

As an extra bonus, this library provides future compatibility with the `mongodb` extension and its `MongoDB\BSON\UTCDateTime` class.

Installation
------------

[](#installation)

```
composer require litipk/doctrine-mongodb-jiffy
```

Usage
-----

[](#usage)

To use this type there are three steps:

1. Install the library through Composer.
2. Register the type in your application, if you are using Symfony, the Bundle constructor is a good place to do it. ```
    Type::registerType(
        'UniversalTimestamp',
        'Litipk\Jiffy\Doctrine\ODM\MongoDB\UniversalTimestampType'
    );
    ```
3. Use the type in your models with the `@UniversalTimestampField` annotation. ```
    use Litipk\Jiffy\Doctrine\ODM\MongoDB\UniversalTimestampField;

    class OurDocument
    {
        /**
         * @UniversalTimestampField()
         * @var UniversalTimestamp
         */
        private $creationDate;

        // [...]
    }
    ```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~53 days

Total

5

Last Release

3680d ago

Major Versions

0.2.1 → 1.0.02016-06-07

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/251364?v=4)[Andrés Correa Casablanca](/maintainers/castarco)[@castarco](https://github.com/castarco)

---

Top Contributors

[![castarco](https://avatars.githubusercontent.com/u/251364?v=4)](https://github.com/castarco "castarco (14 commits)")

### Embed Badge

![Health badge](/badges/litipk-doctrine-mongodb-jiffy/health.svg)

```
[![Health](https://phpackages.com/badges/litipk-doctrine-mongodb-jiffy/health.svg)](https://phpackages.com/packages/litipk-doctrine-mongodb-jiffy)
```

###  Alternatives

[doctrine/mongodb-odm-bundle

Symfony Doctrine MongoDB Bundle

38919.7M236](/packages/doctrine-mongodb-odm-bundle)[doctrine/doctrine-mongo-odm-module

Laminas Module which provides Doctrine MongoDB ODM functionality

87689.5k35](/packages/doctrine-doctrine-mongo-odm-module)[sonata-project/doctrine-mongodb-admin-bundle

Symfony Sonata / Integrate Doctrine MongoDB ODM into the SonataAdminBundle

68862.7k3](/packages/sonata-project-doctrine-mongodb-admin-bundle)[ismaambrosi/generator-bundle

Generates Symfony2 documents, forms and CRUD

2693.6k](/packages/ismaambrosi-generator-bundle)[pumukit/pumukit

Media Portal

6014.6k48](/packages/pumukit-pumukit)[neutron/mongo-odm-silex-provider

MongoODM Silex service provider

3515.8k](/packages/neutron-mongo-odm-silex-provider)

PHPackages © 2026

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