sukohi/brick 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

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.

alt text

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2014-11-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固