PHPackages                             nfq-eta/time-duration-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. nfq-eta/time-duration-type

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

nfq-eta/time-duration-type
==========================

Form type for durations

v0.1.1(8y ago)14.2kMITPHPPHP ^7.1

Since Feb 9Pushed 8y ago4 watchersCompare

[ Source](https://github.com/nfq-eta/time-duration-type)[ Packagist](https://packagist.org/packages/nfq-eta/time-duration-type)[ RSS](/packages/nfq-eta-time-duration-type/feed)WikiDiscussions master Synced yesterday

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

Form type for time durations [![Build Status](https://camo.githubusercontent.com/e0b9342dd77cbb2220ef95f3a3f28ecac1caa37046ab0b6fcf574b699a3a7690/68747470733a2f2f7472617669732d63692e6f72672f6e66712d6574612f74696d652d6475726174696f6e2d747970652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/nfq-eta/time-duration-type)
==========================================================================================================================================================================================================================================================================================================================================

[](#form-type-for-time-durations-)

Allows to input durations in format `hh:mm` or `hh:mm:ss`

Options
-------

[](#options)

### store\_as

[](#store_as)

Model data format

Valid values are

- `seconds`(Nfq\\Bundle\\TimeBundle\\Form\\Type\\TimeDurationType::STORE\_SECONDS)
- `minutes`(Nfq\\Bundle\\TimeBundle\\Form\\Type\\TimeDurationType::STORE\_MINUTES)(default)

### display\_seconds

[](#display_seconds)

boolean for displaying seconds parts. Must be true for when storing as seconds. Defaults to `false`

Minutes stored as seconds example
---------------------------------

[](#minutes-stored-as-seconds-example)

```
    /**
     * {@inheritdoc}
     */
    public function buildForm(FormBuilderInterface $builder, array $options): void
    {
        $builder
            ->add(
                'time',
                TimeDurationType::class,
                [
                    'store_as' => TimeDurationType::STORE_SECONDS,
                    'display_seconds' => false,
                    'required' => false,
                ]
            );
    }
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

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 ~0 days

Total

2

Last Release

3063d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1ddfa322db7376aeb74409dfb0d7a1349818e2567b8f3e3010d60d5a187d4ea9?d=identicon)[Tadcka](/maintainers/Tadcka)

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/nfq-eta-time-duration-type/health.svg)

```
[![Health](https://phpackages.com/badges/nfq-eta-time-duration-type/health.svg)](https://phpackages.com/packages/nfq-eta-time-duration-type)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.5M378](/packages/easycorp-easyadmin-bundle)[pugx/autocompleter-bundle

Add an autocomplete type to forms

93867.3k3](/packages/pugx-autocompleter-bundle)[symfony/ux-toggle-password

Toggle visibility of password inputs for Symfony Forms

27571.2k5](/packages/symfony-ux-toggle-password)[symfony/ux-cropperjs

Cropper.js integration for Symfony

19322.9k3](/packages/symfony-ux-cropperjs)[jbtronics/settings-bundle

A symfony bundle to easily create typesafe, user-configurable settings for symfony applications

9558.8k3](/packages/jbtronics-settings-bundle)[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.

3691.3k16](/packages/netgen-layouts-core)

PHPackages © 2026

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