2017 © Pedro Peláez
 

library laravel-bootstrap-components

Laravel bootstrap components generator.

image

okipa/laravel-bootstrap-components

Laravel bootstrap components generator.

  • Thursday, July 5, 2018
  • by Okipa
  • Repository
  • 2 Watchers
  • 2 Stars
  • 66 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 34 Versions
  • 0 % Grown

The README.md

Laravel Bootstrap Components, (*1)

Latest Stable Version Total Downloads Build Status Coverage Status License: MIT , (*2)

⚠️ 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., (*3)

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

Found this package helpful? Please consider supporting my work!, (*5)

Donate Donate, (*6)

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

Standard use case

Call this component in your view:, (*8)

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

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

And get this HTML generated for you:, (*9)

<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:, (*10)

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

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

And get this HTML generated for you:, (*11)

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

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

:warning: You may have to run a composer dump-autoload after changing a path in your configuration file., (*13)

Translations

All displayed labels or sentences are translatable., (*14)

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

Here is the list of the words and sentences available for translation:, (*16)

  • 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., (*17)

Views

Publish the package views to customize them if necessary:, (*18)

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

API documentation

Testing

bash composer test, (*19)

Changelog

Please see CHANGELOG for more information what has changed recently., (*20)

Contributing

Please see CONTRIBUTING for details., (*21)

Credits

License

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

The Versions

05/07 2018

dev-master

9999999-dev https://github.com/Okipa/laravel-bootstrap-components

Laravel bootstrap components generator.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Arthur Lorent

laravel php bootstrap generator html package generate generation components okipa

05/07 2018

0.4.4

0.4.4.0 https://github.com/Okipa/laravel-bootstrap-components

Laravel bootstrap components generator.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Arthur Lorent

laravel php bootstrap generator html package generate generation components okipa

05/07 2018

0.4.3

0.4.3.0 https://github.com/Okipa/laravel-bootstrap-components

Laravel bootstrap components generator.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Arthur Lorent

laravel php bootstrap generator html package generate generation components okipa

05/07 2018

0.4.2

0.4.2.0 https://github.com/Okipa/laravel-bootstrap-components

Laravel bootstrap components generator.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Arthur Lorent

laravel php bootstrap generator html package generate generation components okipa

05/07 2018

0.4.1

0.4.1.0 https://github.com/Okipa/laravel-bootstrap-components

Laravel bootstrap components generator.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Arthur Lorent

laravel php bootstrap generator html package generate generation components okipa

27/06 2018

0.4.0

0.4.0.0 https://github.com/Okipa/laravel-bootstrap-components

Laravel bootstrap components generator.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Arthur Lorent

laravel php bootstrap generator html package generate generation components okipa

25/06 2018

0.3.5

0.3.5.0 https://github.com/Okipa/laravel-bootstrap-components

Laravel bootstrap components generator.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Arthur Lorent

laravel php bootstrap generator html package generate generation components okipa

24/06 2018

0.3.4

0.3.4.0 https://github.com/Okipa/laravel-bootstrap-components

Laravel bootstrap components generator.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Arthur Lorent

laravel php bootstrap generator html package generate generation components okipa

22/06 2018

0.3.3

0.3.3.0 https://github.com/Okipa/laravel-bootstrap-components

Laravel bootstrap components generator.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Arthur Lorent

laravel php bootstrap generator html package generate generation components okipa

22/06 2018

0.3.2

0.3.2.0 https://github.com/Okipa/laravel-bootstrap-components

Laravel bootstrap components generator.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Arthur Lorent

laravel php bootstrap generator html package generate generation components okipa

22/06 2018

0.3.1

0.3.1.0 https://github.com/Okipa/laravel-bootstrap-components

Laravel bootstrap components generator.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Arthur Lorent

laravel php bootstrap generator html package generate generation components okipa

20/06 2018

0.3.0

0.3.0.0 https://github.com/Okipa/laravel-bootstrap-components

Laravel bootstrap components generator.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Arthur Lorent

laravel php bootstrap generator html package generate generation components okipa

19/06 2018

0.2.2

0.2.2.0 https://github.com/Okipa/laravel-bootstrap-components

Laravel bootstrap components generator.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Arthur Lorent

laravel php bootstrap generator html package generate generation components okipa

19/06 2018

0.2.1

0.2.1.0 https://github.com/Okipa/laravel-bootstrap-components

Laravel bootstrap components generator.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Arthur Lorent

laravel php bootstrap generator html package generate generation components okipa

19/06 2018

0.2.0

0.2.0.0 https://github.com/Okipa/laravel-bootstrap-components

Laravel bootstrap components generator.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Arthur Lorent

laravel php bootstrap generator html package generate generation components okipa

19/06 2018

0.1.9

0.1.9.0 https://github.com/Okipa/laravel-bootstrap-components

Laravel bootstrap components generator.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Arthur Lorent

laravel php bootstrap generator html package generate generation components okipa

15/06 2018

0.1.8

0.1.8.0 https://github.com/Okipa/laravel-bootstrap-components

Laravel bootstrap components generator.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Arthur Lorent

laravel php bootstrap generator html package generate generation components okipa

15/06 2018

0.1.7

0.1.7.0 https://github.com/Okipa/laravel-bootstrap-components

Laravel bootstrap components generator.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Arthur Lorent

laravel php bootstrap generator html package generate generation components okipa

15/06 2018

0.1.6

0.1.6.0 https://github.com/Okipa/laravel-bootstrap-components

Laravel bootstrap components generator.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Arthur Lorent

laravel php bootstrap generator html package generate generation components okipa

15/06 2018

0.1.5

0.1.5.0 https://github.com/Okipa/laravel-bootstrap-components

Laravel bootstrap components generator.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Arthur Lorent

laravel php bootstrap generator html package generate generation components okipa

15/06 2018

0.1.4

0.1.4.0 https://github.com/Okipa/laravel-bootstrap-components

Laravel bootstrap components generator.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Arthur Lorent

laravel php bootstrap generator html package generate generation components okipa

15/06 2018

0.1.3

0.1.3.0 https://github.com/Okipa/laravel-bootstrap-components

Laravel bootstrap components generator.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Arthur Lorent

laravel php bootstrap generator html package generate generation components okipa

14/06 2018

0.1.2

0.1.2.0 https://github.com/Okipa/laravel-bootstrap-components

Laravel bootstrap components generator.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Arthur Lorent

laravel php bootstrap generator html package generate generation components okipa

14/06 2018

0.1.1

0.1.1.0 https://github.com/Okipa/laravel-bootstrap-components

Laravel bootstrap components generator.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Arthur Lorent

laravel php bootstrap generator html package generate generation components okipa

14/06 2018

0.1.0

0.1.0.0 https://github.com/Okipa/laravel-bootstrap-components

Laravel bootstrap components generator.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Arthur Lorent

laravel php bootstrap generator html package generate generation components okipa

14/06 2018

0.0.9

0.0.9.0 https://github.com/Okipa/laravel-bootstrap-components

Laravel bootstrap components generator.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Arthur Lorent

laravel php bootstrap generator html package generate generation components okipa

14/06 2018

0.0.8

0.0.8.0 https://github.com/Okipa/laravel-bootstrap-components

Laravel bootstrap components generator.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Arthur Lorent

laravel php bootstrap generator html package generate generation components okipa

14/06 2018

0.0.7

0.0.7.0 https://github.com/Okipa/laravel-bootstrap-components

Laravel bootstrap components generator.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Arthur Lorent

laravel php bootstrap generator html package generate generation components okipa

14/06 2018

0.0.6

0.0.6.0 https://github.com/Okipa/laravel-bootstrap-components

Laravel bootstrap components generator.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Arthur Lorent

laravel php bootstrap generator html package generate generation components okipa

14/06 2018

0.0.5

0.0.5.0 https://github.com/Okipa/laravel-bootstrap-components

Laravel bootstrap components generator.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Arthur Lorent

laravel php bootstrap generator html package generate generation components okipa

12/06 2018

0.0.4

0.0.4.0 https://github.com/Okipa/laravel-bootstrap-components

Laravel bootstrap components generator.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Arthur Lorent

laravel php bootstrap generator html package generate generation components okipa

12/06 2018

0.0.3

0.0.3.0 https://github.com/Okipa/laravel-bootstrap-components

Laravel bootstrap components generator.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Arthur Lorent

laravel php bootstrap generator html package generate generation components okipa

11/06 2018

0.0.2

0.0.2.0 https://github.com/Okipa/laravel-bootstrap-components

Laravel bootstrap components generator.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Arthur Lorent

laravel php bootstrap generator html package generate generation components okipa

10/06 2018

0.0.1

0.0.1.0 https://github.com/Okipa/laravel-bootstrap-components

Laravel bootstrap components generator.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Arthur Lorent

laravel php bootstrap generator html package generate generation components okipa