{"id":21601743,"url":"https://github.com/kitlabs-cn/kitformbundle","last_synced_at":"2025-04-11T02:20:33.472Z","repository":{"id":57007062,"uuid":"101357333","full_name":"kitlabs-cn/KitFormBundle","owner":"kitlabs-cn","description":"FulltextType(UEditor, UMEditor), LaydateType","archived":false,"fork":false,"pushed_at":"2023-08-04T10:08:29.000Z","size":6012,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T23:41:25.352Z","etag":null,"topics":["bundle","form","laydate","select2","umeditor"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kitlabs-cn.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":"2017-08-25T02:29:13.000Z","updated_at":"2023-10-09T09:29:25.000Z","dependencies_parsed_at":"2022-08-21T14:31:04.915Z","dependency_job_id":null,"html_url":"https://github.com/kitlabs-cn/KitFormBundle","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kitlabs-cn%2FKitFormBundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kitlabs-cn%2FKitFormBundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kitlabs-cn%2FKitFormBundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kitlabs-cn%2FKitFormBundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kitlabs-cn","download_url":"https://codeload.github.com/kitlabs-cn/KitFormBundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248328364,"owners_count":21085302,"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":["bundle","form","laydate","select2","umeditor"],"created_at":"2024-11-24T19:10:31.568Z","updated_at":"2025-04-11T02:20:33.443Z","avatar_url":"https://github.com/kitlabs-cn.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# KitFormBundle\nFulltextType(UEditor, UMEditor), LaydateType\n\n## Installation\n \n### Step 1: Download the Bundle\n---------------------------\n \nOpen a command console, enter your project directory and execute the\nfollowing command to download the latest stable version of this bundle:\n \n\t\n\t$ composer require kitlabs/kit-form-bundle\n\n \nThis command requires you to have Composer installed globally, as explained\nin the [installation chapter](https://getcomposer.org/doc/00-intro.md)\nof the Composer documentation.\n \n### Step 2: Enable the Bundle\n---------------------------\n \nThen, enable the bundle by adding it to the list of registered bundles\nin the `app/AppKernel.php` file of your project:\n\n\t\u003c?php\n\t// app/AppKernel.php\n\t \n\t// ...\n\tclass AppKernel extends Kernel\n\t{\n\t    public function registerBundles()\n\t    {\n\t        $bundles = array(\n\t            // ...\n\t \n\t            new Kit\\FormBundle\\KitFormBundle(),\n\t        );\n\t \n\t        // ...\n\t    }\n\t \n\t    // ...\n\t}\n\n### Step 3: Configuration \n\n\t# config.yml\n\t# Twig Configuration\n\ttwig:\n\t    ...\n\t    form_themes:\n\t        - 'KitFormBundle:Form:kit_form_theme.html.twig'\n\n## Usage\n- LayDateType  \r\n\t引入laydate.js 或者 使用 layui 框架。\r\n\r\n\t\t\u003cscript src=\"{{ asset('public/laydate/laydate.js') }}\"\u003e\u003c/script\u003e\r\n\r\n\tbuildForm进行使用：\r\n\r\n\t\t$builder--\u003eadd('start_time', LayDateType::class, [\r\n            'label' =\u003e '开始时间',\r\n            'type' =\u003e 'time'\r\n        ])-\u003eadd('end_time', LayDateType::class, [\r\n            'label' =\u003e '结束时间',\r\n            'type' =\u003e 'time'\r\n        ]);\r\n\r\n\t| type可选值\t| 名称 |\t用途 |\r\n\t| :---: | :---:| :---: |\r\n\t| year | 年选择器  |\t只提供年列表选择 |\r\n\t| month\t| 年月选择器\t| 只提供年、月选择 |\r\n\t| date\t| 日期选择器\t| 可选择：年、月、日。type默认值，一般可不填 |\r\n\t| time\t| 时间选择器\t| 只提供时、分、秒选择 |\r\n\t| datetime\t| 日期时间选择器\t| 可选择：年、月、日、时、分、秒 |\r\n\r\n\r\n\tPS: 详细配置请阅读[layDate官方文档](http://www.layui.com/laydate/)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkitlabs-cn%2Fkitformbundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkitlabs-cn%2Fkitformbundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkitlabs-cn%2Fkitformbundle/lists"}