scholtz / bootstrap-php
PHP library for bootstrap
Installs: 2 344
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 0
Open Issues: 0
Requires
- php: >=5.0.0
This package is auto-updated.
Last update: 2024-10-29 04:36:26 UTC
README
PHP class for bootstrap rendering
Usage:
<?php // using composer & autoload require 'vendor/autoload.php'; use \BT\Base;$load = new \BT\Base; // using basic require call //require_once("../src/BT/Base.php"); $c = new \BT\ContainerFluid(new \BT\Row(new \BT\ColMd6("col1"),new \BT\ColMd6("col2"))); \BT\Settings::$prettyPrint = false; if($c->show() == '<div class="container-fluid"><div class="row"><div class="col-md-6">col1</div><div class="col-md-6">col2</div></div></div>'){ echo "Test ok\n"; }else{ echo "Test failed"; } ?>
Installation
Using composer:
-
Install composer curl -sS https://getcomposer.org/installer | php
-
Install composer package php composer.phar require scholtz/bootstrap-php