2017 © Pedro Peláez
 

library brick

image

sukohi/brick

  • Sunday, November 9, 2014
  • by Sukohi
  • Repository
  • 1 Watchers
  • 0 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

brick

A PHP package mainly developed for Laravel to enter data to input and textarea randomly and automatically., (*1)

alt text, (*2)

Installation&setting for Laravel

After installation using composer, add the followings to the array in app/config/app.php, (*3)

'providers' => array(  
    ...Others...,  
    'Sukohi\Brick\BrickServiceProvider', 
)

Also, (*4)

'aliases' => array(  
    ...Others...,  
    'Brick' =>'Sukohi\Brick\Facades\Brick',
)

And then execute the next command to publish the view, (*5)

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="***"), (*6)

<label for="first_name">First Name</label>
<input id="first_name" type="text" value="">, (*7)

Minimal way, (*8)

{{ Brick::render() }}
and type ctrl + B on your browser

with jQuery, (*9)

{{ Brick::jquery() }}
in this case, no need to call render() method.

Set shortcut key, (*10)

{{ Brick::fire('CTRL+I') }}
{{ Brick::fire('ALT+B') }}
{{ Brick::fire('SHIFT+A') }}

Set data type, (*11)

{{ 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, (*12)

@if(App::isLocal())  
    {{ Brick::render() }}
@endif

License

This package is licensed under the MIT License., (*13)

Copyright 2014 Sukohi Kuhoh, (*14)

The Versions

09/11 2014

dev-master

9999999-dev

  Sources   Download

The Requires

 

by Avatar Sukohi