PHPackages                             iserv/zeit-bridge - 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. iserv/zeit-bridge

ActiveLibrary

iserv/zeit-bridge
=================

Integrates the Zeit library into Symfony

v1.5(1y ago)14MITPHPPHP &gt;=8.2

Since Apr 12Pushed 8mo ago5 watchersCompare

[ Source](https://github.com/IServ-GmbH/zeit-bridge)[ Packagist](https://packagist.org/packages/iserv/zeit-bridge)[ RSS](/packages/iserv-zeit-bridge/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependencies (3)Versions (14)Used By (0)

IServ Zeit-Bridge Library
=========================

[](#iserv-zeit-bridge-library)

Basics
------

[](#basics)

The library integrates the Date and Time domain objects from the [Zeit](https://github.com/IServ-GmbH/zeit) library into Doctrine and Symfony.

Usage
-----

[](#usage)

### Date and Time types for Doctrine

[](#date-and-time-types-for-doctrine)

You can annotate your entity fields with `zeit_date` or `zeit_time` and Doctrine will convert the corresponding database fields `DATE` and `TIME` into the domain objects instead of hydrating PHP's native `DateTime` objects.

```
use Doctrine\ORM\Mapping as ORM;
use IServ\Library\Zeit\Time;

class RestPeriod
{
    /**
     * @ORM\Column(name="`end`", type="zeit_time", nullable=false)
     *
     * @var Time
     */
    private $start;

    public function getStart(): Time
    {
        return $this->start;
    }
}
```

Instead of the need to handle `\DateTime` objects holding data you don't need (e.g. the current time or date), you only get the domain data you want to have.

### Date and Time types for Forms

[](#date-and-time-types-for-forms)

The library also offers `ZeitDateType` and `ZeitTimeType` for Symfony forms. You can use those types to map your model into a form and use the underlying date and time form types. The Zeit form types will automatically transform the data to native `DateTime` objects where this is needed.

```
use IServ\Bridge\Zeit\Form\Type\ZeitTimeType;
use IServ\Library\Zeit\Time;
use Symfony\Component\Validator\Constraints as Assert;

class RestPeriodData
{
    /**
     * @Assert\NotNull(message="This value is required.")
     *
     * @var Time|null
     */
    private $start;

    public function getStart(): ?Time
    {
        return $this->start;
    }

    /**
     * @return $this
     */
    public function setStart(?Time $start): self
    {
        $this->start = $start;

        return $this;
    }
}

// Somewhere in a controller
$data = new RestPeriodData();

$form = $this->createForm(RestPeriodType::class, $data)
    ->add('start', ZeitTimeType::class, [/* ... */])
    ->getForm()
;
```

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance48

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 60% 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 ~110 days

Recently: every ~193 days

Total

12

Last Release

649d ago

PHP version history (4 changes)v1.0-RC1PHP &gt;=7.3

v1.0.1PHP &gt;=8.0

v1.1PHP &gt;=8.1

v1.5PHP &gt;=8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/2e47096095e08fa7cc521826f5ab3c09f1c5ad7f9a0d26062a5aa31e0d0078b4?d=identicon)[iserv](/maintainers/iserv)

---

Top Contributors

[![althaus](https://avatars.githubusercontent.com/u/105975?v=4)](https://github.com/althaus "althaus (12 commits)")[![DomSieIServ](https://avatars.githubusercontent.com/u/131360524?v=4)](https://github.com/DomSieIServ "DomSieIServ (4 commits)")[![FelixJacobi](https://avatars.githubusercontent.com/u/25072300?v=4)](https://github.com/FelixJacobi "FelixJacobi (3 commits)")[![hype09](https://avatars.githubusercontent.com/u/6646802?v=4)](https://github.com/hype09 "hype09 (1 commits)")

---

Tags

datedatetimephpsymfonysymfony-bundletimezeit

### Embed Badge

![Health badge](/badges/iserv-zeit-bridge/health.svg)

```
[![Health](https://phpackages.com/badges/iserv-zeit-bridge/health.svg)](https://phpackages.com/packages/iserv-zeit-bridge)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k16.7M310](/packages/easycorp-easyadmin-bundle)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[netgen/layouts-core

Netgen Layouts enables you to build and manage complex web pages in a simpler way and with less coding. This is the core of Netgen Layouts, its heart and soul.

3689.4k10](/packages/netgen-layouts-core)[plenta/contao-jobs-basic-bundle

Basic Job Manager for Contao (including Google Jobs).

335.1k](/packages/plenta-contao-jobs-basic-bundle)

PHPackages © 2026

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