Coder Social home page Coder Social logo

brick's Introduction

brick

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

brick's People

Contributors

sukohi avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.