{"id":18049739,"url":"https://github.com/mablae/datetimepickerbundle","last_synced_at":"2025-10-20T07:19:24.195Z","repository":{"id":57015904,"uuid":"51781341","full_name":"mablae/DatetimepickerBundle","owner":"mablae","description":"A bootstrap DateTimePicker for symfony forms","archived":false,"fork":false,"pushed_at":"2018-05-13T21:28:48.000Z","size":16,"stargazers_count":1,"open_issues_count":2,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-15T20:41:05.863Z","etag":null,"topics":["bootstrap","datepicker","momentjs","symfony-bundle"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mablae.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-02-15T19:55:34.000Z","updated_at":"2019-03-07T11:16:04.000Z","dependencies_parsed_at":"2022-08-21T13:20:21.921Z","dependency_job_id":null,"html_url":"https://github.com/mablae/DatetimepickerBundle","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/mablae/DatetimepickerBundle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mablae%2FDatetimepickerBundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mablae%2FDatetimepickerBundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mablae%2FDatetimepickerBundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mablae%2FDatetimepickerBundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mablae","download_url":"https://codeload.github.com/mablae/DatetimepickerBundle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mablae%2FDatetimepickerBundle/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262172813,"owners_count":23270106,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bootstrap","datepicker","momentjs","symfony-bundle"],"created_at":"2024-10-30T21:08:47.671Z","updated_at":"2025-10-20T07:19:19.162Z","avatar_url":"https://github.com/mablae.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DatetimepickerBundle\n\nWarning: This is abadoned and incomplete! Uses at your own rik.\n\n[![Packagist](https://img.shields.io/packagist/v/mablae/datetimepicker-bundle.svg)]()\n\nThis bundle implements the [Bootstrap DateTime Picker v4](http://eonasdan.github.io/bootstrap-datetimepicker/Installing/#bower-) in a Form Type for Symfony 2.*. The bundle structure is inspired by GenemuFormBundle.\n\nPlease feel free to contribute, to fork, to send merge request and to create ticket.\n\n## Installation\n\n### Step 1: Install DatetimepickerBundle\n\n```bash\nphp composer.phar require mablae/datetimepicker-bundle\n```\n\n### Step 2: Enable the bundle\n\n``` php\n\u003c?php\n// app/AppKernel.php\n\npublic function registerBundles()\n{\n    $bundles = array(\n        // ...\n        new Mablae\\DatetimepickerBundle\\MablaeDatetimepickerBundle(),\n    );\n}\n```\n\n``` yml\n# app/config/config.yml\nmablae_datetimepicker:\n    picker: ~\n```\n\n### Step 3: Install moment.js and Bootstrap3 Datepicker\n\nThis bundle does not handle an asset minification or loading. Just use gulp or webpack. \n\n```\nhttp://eonasdan.github.io/bootstrap-datetimepicker/Installing/\n```\n\n## Usages\n\n``` php\n\u003c?php\n// ...\nuse Mablae\\DatetimepickerBundle\\Form\\Type\\DateTimeType;\n\npublic function buildForm(FormBuilder $builder, array $options)\n{\n    $builder\n        // defaut options\n        -\u003eadd('createdAt', DateTimeType::class) \n        \n        // full options\n        -\u003eadd('updatedAt', DateTimeType::class, array( 'pickerOptions' =\u003e\n            array('format' =\u003e 'mm/dd/yyyy',\n                'viewMode' =\u003e 'days', // days, month, years, decades\n                                     \n                ))); \n                \n}\n```\n\n\nInclude the javascript needed to initialize the widget: \n\n``` jinja2\n\n...\n{{ form_javascript(your.form.field) }}\n...\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmablae%2Fdatetimepickerbundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmablae%2Fdatetimepickerbundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmablae%2Fdatetimepickerbundle/lists"}