All Projects → Okipa → laravel-bootstrap-components

Okipa / laravel-bootstrap-components

Licence: MIT license
Ready-to-use and customizable form components.

Programming Languages

PHP
23972 projects - #3 most used programming language
Blade
752 projects

Projects that are alternatives of or similar to laravel-bootstrap-components

Codegen
A model-view based code generator written in Java
Stars: ✭ 36 (+80%)
Mutual labels:  generate, generation
Laravel Bootstrap Table List
Bootstrap table list generator for Laravel.
Stars: ✭ 16 (-20%)
Mutual labels:  generate, generation
python-makefun
Dynamically create python functions with a proper signature.
Stars: ✭ 62 (+210%)
Mutual labels:  generate, generation
Laravel Table
Generate tables from Eloquent models.
Stars: ✭ 101 (+405%)
Mutual labels:  generate, generation
image-gen-api
An API To manupulate Images
Stars: ✭ 14 (-30%)
Mutual labels:  generation
Swiftplate
Easily generate cross platform Swift framework projects from the command line
Stars: ✭ 1,746 (+8630%)
Mutual labels:  generate
Go Proto Gql
Protobuff plugins for generating graphql schema and golang to graphql bindings. Also supports a graphql gateway (Alpha)
Stars: ✭ 127 (+535%)
Mutual labels:  generate
Quick uicode
generate unity ui code quickly by editor(通过编辑器快速生成ui代码)
Stars: ✭ 119 (+495%)
Mutual labels:  generate
pixitar
🧝 Pixitar is an avatar generation library written in Ruby.
Stars: ✭ 20 (+0%)
Mutual labels:  generation
sym
A Mathematica package for generating symbolic models from data
Stars: ✭ 46 (+130%)
Mutual labels:  generation
cti-stix-generator
OASIS Cyber Threat Intelligence (CTI) TC: A tool for generating STIX content for prototyping and testing. https://github.com/oasis-open/cti-stix-generator
Stars: ✭ 27 (+35%)
Mutual labels:  generation
Generatefindviewbyid
【暂停更新-20171212】Android Studio Plugin, Can input, can be selected to auto generator findViewById code in Activity or etc, support ButterKnife(version 8.4.0), support ViewHolder.
Stars: ✭ 145 (+625%)
Mutual labels:  generate
GroundGrowing
Open Source Unity3d Planetary Terrain Editor Extension with incremental background updates via multithreading
Stars: ✭ 66 (+230%)
Mutual labels:  generation
Zenrpc
JSON-RPC 2.0 Server Implementation with SMD support written in Go (go generate)
Stars: ✭ 140 (+600%)
Mutual labels:  generate
django-freeze
🧊 convert your dynamic django site to a static one with one line of code.
Stars: ✭ 81 (+305%)
Mutual labels:  generate
Docx
Easily generate .docx files with JS/TS with a nice declarative API. Works for Node and on the Browser.
Stars: ✭ 2,150 (+10650%)
Mutual labels:  generate
Generate
A new command line tool and developer framework for scaffolding out GitHub projects. Generate offers the robustness and configurability of Yeoman, the expressiveness and simplicity of Slush, and more powerful flow control and composability than either.
Stars: ✭ 238 (+1090%)
Mutual labels:  generate
FocusSeq2Seq
[EMNLP 2019] Mixture Content Selection for Diverse Sequence Generation (Question Generation / Abstractive Summarization)
Stars: ✭ 109 (+445%)
Mutual labels:  generation
Go Plantuml
Generate plantuml diagrams from go source files or directories
Stars: ✭ 167 (+735%)
Mutual labels:  generate
Kratos
A modular-designed and easy-to-use microservices framework in Go.
Stars: ✭ 15,844 (+79120%)
Mutual labels:  generate

Laravel Bootstrap Components

Latest Stable Version Total Downloads Build Status Coverage Status License: MIT

⚠️ THIS PACKAGE HAS BEEN ABANDONED IN FAVOR OF https://github.com/Okipa/laravel-form-components. ⚠️
=> Only bug fixes will be merged. Please consider moving to the new package.

Save time and take advantage of a set of dynamical, ready-to-use and fully customizable bootstrap form components.

Found this package helpful? Please consider supporting my work!

Donate Donate

Compatibility

Laravel PHP Bootstrap Package
^7.0 ^7.4 ^4.0 ^5.0
^7.0 ^7.4 ^4.0 ^4.0
^7.0 ^7.4 ^4.0 ^3.0
^5.8 ^7.2 ^4.0 ^2.0
^5.5 ^7.1 ^4.0 ^1.0

Upgrade guide

Usage

Just call the components you need in your views and let this package take care of the HTML generation annoying part.

Standard use case

Call this component in your view:

{{-- Helper style --}}
{{ inputText()->name('name') }}

{{-- Facade style --}}
{{ InputText::name('name') }}

And get this HTML generated for you:

<div class="component-container form-group">
    <label for="text-name">
        Name
    </label>
    <div class="input-group">
        <div class="input-group-prepend">
            <span class="input-group-text">
                <i class="fas fa-font"></i>
            </span>
        </div>
        <input id="text-name"
            class="component form-control"
            type="text"
            name="name"
            value=""
            placeholder="Name">
    </div>
</div>

Multilingual use case

Call this component in your view:

{{-- Helper style --}}
{{ inputText()->name('title')->localized(['fr', 'en']) }}

{{-- Facade style --}}
{{ InputText::name('title')->localized(['fr', 'en']) }}

And get this HTML generated for you:

<div class="component-container form-group">
    <label for="text-title-fr">
        Title (FR)
    </label>
    <div class="input-group">
        <div class="input-group-prepend">
            <span class="input-group-text">
                <i class="fas fa-font"></i>
            </span>
        </div>
        <input id="text-title-fr"
            class="component form-control"
            type="text"
            name="title[fr]"
            value=""
            placeholder="Title (FR)"
            data-locale="fr">
    </div>
</div>
<div class="component-container form-group">
    <label for="text-title-en">
        Title (EN)
    </label>
    <div class="input-group">
        <div class="input-group-prepend">
            <span class="input-group-text">
                <i class="fas fa-font"></i>
            </span>
        </div>
        <input id="text-title-en"
            class="component form-control"
            type="text"
            name="title[en]"
            value=""
            placeholder="Title (EN)"
            data-locale="en">
    </div>
</div>

Table of Contents

Installation

  • Install the package with composer:
composer require okipa/laravel-bootstrap-components

Configuration

Publish the package configuration file to customize it if necessary:

php artisan vendor:publish --tag=bootstrap-components:config

⚠️ You may have to run a composer dump-autoload after changing a path in your configuration file.

Translations

All displayed labels or sentences are translatable.

See how to translate them on the Laravel official documentation: https://laravel.com/docs/localization#using-translation-strings-as-keys.

Here is the list of the words and sentences available for translation:

  • Create
  • Update
  • Validate
  • Back
  • Cancel
  • Remove
  • No file selected.
  • Awaited format: Day/Month/Year.
  • Awaited format: Hour:Minutes.
  • Awaited format: Day/Month/Year Hour:Minutes.
  • Your browser does not support the :tag HTML5 tag.

You will also have to define each attribute you define in the ->name() method in the validation (attributes key) translation file.

Views

Publish the package views to customize them if necessary:

php artisan vendor:publish --tag=bootstrap-components:views

API documentation

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].