PHP code example of krzysztofzylka / bootstrap-generator

1. Go to this page and download the library: Download krzysztofzylka/bootstrap-generator library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

krzysztofzylka / bootstrap-generator example snippets


\krzysztofzylka\BootstrapGenerator\BootstrapGenerator

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

BootstrapGenerator::alert('alert!', ThemeColor::Primary)
    //not 

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

BootstrapGenerator::badge('badge!', BackgroundColor::Primary)
    //not 

use \krzysztofzylka\BootstrapGenerator\BootstrapGenerator;

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

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

BootstrapGenerator::button('button!', ThemeColor::Primary)
    //not