sukohi/brick
Composer 安装命令:
composer require sukohi/brick
包简介
README 文档
README
A PHP package mainly developed for Laravel to enter data to input and textarea randomly and automatically.
Installation&setting for Laravel
After installation using composer, add the followings to the array in app/config/app.php
'providers' => array(
...Others...,
'Sukohi\Brick\BrickServiceProvider',
)
Also
'aliases' => array(
...Others...,
'Brick' =>'Sukohi\Brick\Facades\Brick',
)
And then execute the next command to publish the view
php artisan view:publish sukohi/brick
Usage
Brick basically use label texts as input data.
So, you need to prepare html-tags in your view like this.
(Match for="***" and id="***")
<label for="first_name">First Name</label>
<input id="first_name" type="text" value="">
Minimal way
{{ Brick::render() }}
and type ctrl + B on your browser
with jQuery
{{ Brick::jquery() }}
in this case, no need to call render() method.
Set shortcut key
{{ Brick::fire('CTRL+I') }}
{{ Brick::fire('ALT+B') }}
{{ Brick::fire('SHIFT+A') }}
Set data type
{{ Brick::fire('CTRL+B', array(
'twitter' => 'url', // inputed random URL
'url' => 'password', // inputed random numbers
'user-id' => 'email' // inputed random email
))->jquery() }}
Only for DEV environment
@if(App::isLocal())
{{ Brick::render() }}
@endif
License
This package is licensed under the MIT License.
Copyright 2014 Sukohi Kuhoh
统计信息
- 总下载量: 15
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2014-11-09