mrkatz / input
html, input generation
0.0.2
2020-02-17 11:43 UTC
Requires
- illuminate/support: ~5|~6
Requires (Dev)
- mockery/mockery: ^1.1
- orchestra/testbench: ~3|~4
- phpunit/phpunit: ^8.0
- sempro/phpunit-pretty-print: ^1.0
This package is auto-updated.
Last update: 2024-10-24 17:33:57 UTC
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.