定制 kamran/xml-form-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

kamran/xml-form-bundle

Composer 安装命令:

composer require kamran/xml-form-bundle

包简介

Build symfony2 forms using xml files

README 文档

README

Build symfony2 forms quickly using this bundle

Description:

This bundle provides the facility to create symfony2 forms using XML files. You can define all forms related schema inside XML file. This bundle translates XML schema into symfony2 forms.

This bundle was originally developed for a wrapper bundle between two components. First component is an Interactive Form Builder(Drag & Drop) which is developed in JavaScript. It will be soon available on codecanyon as a development tool(I am working on it). User will create his forms using Form Builder tool and export that forms as XML files. Second components are MVC frameworks like symfony, Laravel etc.

Alternatively this bundle can be used for building small forms directly in symfony2. This bundle is used by a SettingsBundle for building settings forms. SettingsBundle.

alt text

Installation.

Using composer

$ composer require kamran/xml-form-bundle dev-master

Add the KamranXmlFormBundle to your AppKernel.php file:

new Kamran\XmlFormBundle\KamranXmlFormBundle();

How to use?

<xmlforms>
    <links>
        <link key="user_settings" order="1" attach-form="userSettingsForm" >User Settings</link>
    </links>
    <forms>
        <form id="userSettingsForm" name="tagtype_form" method="POST">
            <fields>
                <grid-size type="text" required="false" label="Grid Paging Size" ></grid-size>
                <default-role type="text" required="false" label="Default Role for Registration" ></default-role>
                <type type="choice" required="false" label="Select Tag Type" >
                    <choices>
                        <item key="1">10</item>
                        <item key="2">20</item>
                        <item key="3">25</item>
                        <item key="7">40</item>
                    </choices>
                </type>
            </fields>
        </form>
    </forms>
</xmlforms>

Todo list:

  • Custom DataTransformers
  • Forms Validations
  • Forms Submission messages
  • Multi-Step forms
  • Parent/Child Forms
  • Popup Forms
  • Forms tooltips(descriptions)
  • Useful commands support

Reporting an issue or feature request.

Issues and feature requests are tracked in the Github issue tracker.

How to contribute?

The contribution for this bundle for public is open, anybody could help me to participate bugs, documentation and code.

License.

This software is licensed under the MIT license. See the complete license file in the bundle:

Resources/meta/LICENSE

Read the License

统计信息

  • 总下载量: 10
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-11-02

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固