{"id":15040552,"url":"https://github.com/voda/dateinput","last_synced_at":"2025-04-22T17:49:11.778Z","repository":{"id":1493850,"uuid":"1745223","full_name":"voda/DateInput","owner":"voda","description":"Form component for Nette Framework supporting all HTML 5 date inputs.","archived":false,"fork":false,"pushed_at":"2024-08-04T11:34:34.000Z","size":75,"stargazers_count":10,"open_issues_count":5,"forks_count":11,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-20T14:58:39.126Z","etag":null,"topics":["addon","datepicker","nette"],"latest_commit_sha":null,"homepage":"http://date-input.vodacek.eu/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/voda.png","metadata":{"files":{"readme":"readme.md","changelog":"changeNetteVersion.sh","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2011-05-13T20:39:06.000Z","updated_at":"2024-08-04T11:12:16.000Z","dependencies_parsed_at":"2024-06-18T22:54:09.260Z","dependency_job_id":"f230eb32-ba33-44e0-9f9b-f38fcf5ba784","html_url":"https://github.com/voda/DateInput","commit_stats":{"total_commits":78,"total_committers":6,"mean_commits":13.0,"dds":0.07692307692307687,"last_synced_commit":"a00ab164738c3a5cc9a209e01c2abb5c64ec30b7"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voda%2FDateInput","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voda%2FDateInput/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voda%2FDateInput/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voda%2FDateInput/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/voda","download_url":"https://codeload.github.com/voda/DateInput/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250290773,"owners_count":21406236,"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":["addon","datepicker","nette"],"created_at":"2024-09-24T20:44:44.094Z","updated_at":"2025-04-22T17:49:11.733Z","avatar_url":"https://github.com/voda.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"DateInput\n=========\nNette forms component for selecting date and time values.\n\nIn PHP this addon works with DateTime objects, in the browser it uses jqueryUI calendar with timepicker addon. Look at some examples at the [demo page](http://date-input.vodacek.eu/).\n\n\n[![Build Status](https://travis-ci.org/voda/DateInput.svg?branch=master)](https://travis-ci.org/voda/DateInput)\n[![Latest Stable Version](https://poser.pugx.org/voda/date-input/v/stable)](https://packagist.org/packages/voda/date-input)\n[![Total Downloads](https://poser.pugx.org/voda/date-input/downloads)](https://packagist.org/packages/voda/date-input)\n[![License](https://poser.pugx.org/voda/date-input/license)](https://packagist.org/packages/voda/date-input)\n\n\nJS dependencies\n---------------\n * [jQuery](http://jquery.com/) and [jQueryUI](http://jqueryui.com/)\n * [Timepicker addon](http://trentrichardson.com/examples/timepicker/) version 1.1.0 or newer\n\nInstallation\n------------\n\n`$ composer require voda/date-input`\n\npackage can be also installed using bower: `$ bower install voda-date-input --save`\n\ninsert required javascript and style files into your layout (order of scripts is important):\n```html\n\u003cscript type='text/javascript' src=\"{$basePath}/scripts/jquery-ui-timepicker-addon.js\"\u003e\u003c/script\u003e\n\u003cscript type='text/javascript' src=\"{$basePath}/scripts/dateInput.js\"\u003e\u003c/script\u003e\n\u003clink rel=\"stylesheet\" type=\"text/css\" href=\"{$basePath}/styles/jquery-ui-timepicker-addon.css\"\u003e\n\u003clink rel=\"stylesheet\" type=\"text/css\" href=\"{$basePath}/styles/dateInput.css\"\u003e\n```\nregister the addon in your bootstrap.php:\n```\nVodacek\\Forms\\Controls\\DateInput::register();\n```\ninitialize the calendar using javascript:\n```js\n$(document).ready(function() {\n    $('input[data-dateinput-type]').dateinput({\n        'datetime-local': {\n            dateFormat: 'd.m.yy',\n            timeFormat: 'H:mm',\n            options: { // options for type=datetime-local\n                changeYear: true\n            }\n        },\n        date: {\n            dateFormat: 'd.m.yy'\n        },\n        month: {\n            dateFormat: 'MM yy'\n        },\n        week: {\n            dateFormat: \"w. 'week of' yy\"\n        },\n        time: {\n            timeFormat: 'H:mm'\n        },\n        options: { // global options\n            closeText: \"Close\"\n        }\n    });\n});\n```\n\nUsage\n-----\n```php\n$form-\u003eaddDate('datetimeLocal', 'Local datetime', DateInput::TYPE_DATETIME_LOCAL)\n        -\u003esetRequired()\n        -\u003esetDefaultValue(new DateTimeImmutable())\n        -\u003eaddRule(Form::RANGE, null, array(new DateTimeImmutable('-2 years'), new DateTimeImmutable('+2 years')));\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoda%2Fdateinput","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvoda%2Fdateinput","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoda%2Fdateinput/lists"}