PHPackages                             ruwork/polyfill-form-dti-bundle - 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. ruwork/polyfill-form-dti-bundle

AbandonedSymfony-bundle[Utility &amp; Helpers](/categories/utility)

ruwork/polyfill-form-dti-bundle
===============================

Symfony Form polyfill bundle adding input=datetime\_immutable to date types.

0.2.1(8y ago)152.2kMITPHP &gt;=5.5

Since Feb 10Compare

[ Source](https://github.com/ruvents/ruwork-polyfill-form-dti-bundle)[ Packagist](https://packagist.org/packages/ruwork/polyfill-form-dti-bundle)[ RSS](/packages/ruwork-polyfill-form-dti-bundle/feed)WikiDiscussions Synced today

READMEChangelog (3)Dependencies (7)Versions (4)Used By (0)

Symfony Form DateTimeImmutable Polyfill Bundle
==============================================

[](#symfony-form-datetimeimmutable-polyfill-bundle)

[![GitHub license](https://camo.githubusercontent.com/42311b2321c159b3daba80e7dc11a47ac2a31e619b079f5208816d09c64d20a2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f727576656e74732f7275776f726b2d706f6c7966696c6c2d666f726d2d6474692d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://github.com/ruvents/ruwork-polyfill-form-dti-bundle/blob/master/LICENSE)[![Travis branch](https://camo.githubusercontent.com/3596c01cac995a760dde976f1ece323318e7e326453b9445eb121b8972834aaa/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f727576656e74732f7275776f726b2d706f6c7966696c6c2d666f726d2d6474692d62756e646c652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/ruvents/ruwork-polyfill-form-dti-bundle)[![Codecov branch](https://camo.githubusercontent.com/5a22be9bfc3c8e43e364c5823e872025b19f9d84dbdf85ddddfa6e093a25b932/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f727576656e74732f7275776f726b2d706f6c7966696c6c2d666f726d2d6474692d62756e646c652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://codecov.io/gh/ruvents/ruwork-polyfill-form-dti-bundle)[![Packagist](https://camo.githubusercontent.com/964d122a8c7fc9287a53ce6bafc6ee6a9e410269dde0d61bbd0f646d1599bdde/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7275776f726b2f706f6c7966696c6c2d666f726d2d6474692d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ruwork/polyfill-form-dti-bundle)

This package is a polyfill bundle for my [pull request](http://symfony.com/blog/new-in-symfony-4-1-added-support-for-immutable-dates-in-forms) adding `input=datetime_immutable` option to the Symfony date and time form types.

Works with PHP `>=5.5` and Symfony `>=2.8`.

Internally this bundle uses the [ruwork/polyfill-form-dti](https://github.com/ruvents/ruwork-polyfill-form-dti) package and plugs its type extensions and guesser into DI with all necessary tags.

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

[](#installation)

```
composer require ruwork/polyfill-form-dti-bundle
```

Enable the `Ruwork\PolyfillFormDTIBundle\RuworkPolyfillFormDTIBundle` manually in your kernel if you don't use Symfony Flex.

Usage
-----

[](#usage)

```
