sukohi / brick
Installs: 15
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/sukohi/brick
Requires
- php: >=5.4.0
- illuminate/support: 4.2.*
This package is not auto-updated.
Last update: 2025-10-25 22:40:07 UTC
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