定制 dinesh/easyform 二次开发

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

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

dinesh/easyform

Composer 安装命令:

composer require dinesh/easyform

包简介

Laravel form builder,Easy way to make Forms with laravel

README 文档

README

Installation

Latest Stable Version Total Downloads Latest Unstable Version License Build Status

Begin by installing this package through Composer. Edit your project's composer.json file to require dinesh/easyform.

"require": {
	"laravel/framework": "4.*",
	"dinesh/easyform": "dev-master"
}

Next, update Composer from the Terminal:

composer update

OR

composer require dinesh/easyform:dev-master

Once this operation completes, the next step is to add the service provider. Open app/config/app.php, and add a new item to the providers array.

'Dinesh\Easyform\EasyformServiceProvider',

Next, you need to publish it's config file(s).

php artisan config:publish dinesh/easyform

default config template

return array(
    'templates' => array(
        'default' => '<div class="form-group {{error-has}}">
                    {{label}}
                    <div class="controls col-sm-5">
                        {{tag}}
                        {{error-first}}
                    </div>
                </div>',
        'default2' => '<div class="form-group">
                    {{label}}00000000
                    <div class="controls col-sm-5">
                        {{tag}}
                    </div>
                </div>',
    ),
    'tags' => array('{{test}}' => 'default_value'),
);

example

{{EasyForm::text('first_name',null,array('class'=> 'form-control'))
          ->label('First Name:',array('class'=>'col-sm-2 control-label'))
          ->error($errors)}}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-06-03