mrkatz/input
Composer 安装命令:
composer require mrkatz/input
包简介
html, input generation
README 文档
README
A html generator for Inputs. See Below.
Installation
Via Composer
$ composer require mrkatz/input
Usage
{!! input()->text('name','value') !!}
<input name="name" type="text" value="value">
{!! input()->text('name','value')->wrap('div','form-group')->label('My Input')->id('idName') !!}
<div class="form-group"> <label for="idName">My Input</label> <input name="name" type="text" id="idName" value="value"> </div>
{!! input()
->select('DaysOfWeek',['1' => 'Monday','2' => 'Tuesday', '3' => 'Wednesday'])
->label('Choose a Day')
->placeholder('Choose A Day')
->wrap(null,'form-group','<div><div {class}>{label}</div><div {class}>{input}</div></div>') !!}
<div> <div class="form-group"> <label>Choose a Day</label> </div> <div class="form-group"> <select name="DaysOfWeek"> <option selected="" disabled="" hidden="">Choose A Day </option> <option value="1">Monday </option> <option value="2">Tuesday </option> <option value="3">Wednesday </option> </select> </div> </div>
Change log
Please see the changelog for more information on what has changed recently.
Testing
$ composer test
Contributing
Please see contributing.md for details and a todolist.
Security
If you discover any security related issues, please email adamkaczocha@gmail.com instead of using the issue tracker.
Credits
License
MIT. Please see the license file for more information.
统计信息
- 总下载量: 11
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-02-15