krzysztofzylka/bootstrap-generator

This package is abandoned and no longer maintained. The author suggests using the krzysztofzylka/bootstrap-generator package instead.

Bootstrap 5.3 generator

1.0.0 2023-01-07 09:23 UTC

This package is auto-updated.

Last update: 2023-11-30 16:08:41 UTC


README

Install

composer install krzysztofzylka/bootstra-generator

Class

\krzysztofzylka\BootstrapGenerator\BootstrapGenerator

Methods

Alert

use \krzysztofzylka\BootstrapGenerator\BootstrapGenerator;
use \krzysztofzylka\BootstrapGenerator\enum\ThemeColor;

BootstrapGenerator::alert('alert!', ThemeColor::Primary)
    //not required additional methods
    ->header('header') //alert header
    ->headerTag('h4'); //custom header tag

Badge

use \krzysztofzylka\BootstrapGenerator\BootstrapGenerator;
use \krzysztofzylka\BootstrapGenerator\enum\BackgroundColor;

BootstrapGenerator::badge('badge!', BackgroundColor::Primary)
    //not required additional method
    ->roundedPill(); //rounded

Breadcrumb

use \krzysztofzylka\BootstrapGenerator\BootstrapGenerator;

BootstrapGenerator::breadcrumb()
    ->addBreadcrumb('a', 'true', '#')
    ->...;

Button

use \krzysztofzylka\BootstrapGenerator\BootstrapGenerator;
use \krzysztofzylka\BootstrapGenerator\enum\ThemeColor;
use \krzysztofzylka\BootstrapGenerator\enum\Size;

BootstrapGenerator::button('button!', ThemeColor::Primary)
    //not required additional method
    ->tag('div')
    ->size(Size::Sm)
    ->disable()
    ->badge('badge', ThemeColor::Secondary)