PHPackages                             lodev09/bootstrap-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. lodev09/bootstrap-php

ActiveLibrary[Framework](/categories/framework)

lodev09/bootstrap-php
=====================

A highly extendable PHP library that generate and prints html for bootstrap.

1.1.13(5y ago)610.7k—0%3[1 PRs](https://github.com/lodev09/bootstrap-php/pulls)MITPHPPHP &gt;=5.4

Since Sep 22Pushed 4y ago3 watchersCompare

[ Source](https://github.com/lodev09/bootstrap-php)[ Packagist](https://packagist.org/packages/lodev09/bootstrap-php)[ Docs](https://github.com/lodev09/bootstrap-php)[ RSS](/packages/lodev09-bootstrap-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (36)Used By (0)

Bootstrap PHP
=============

[](#bootstrap-php)

A highly extendable PHP library that generate and prints html for [bootstrap](http://getbootstrap.com/).

Installation
------------

[](#installation)

```
$ composer require lodev09/bootstrap-php

```

Built-in Components
-------------------

[](#built-in-components)

The library has built-in components that are already available for you to use. See [creating custom components](https://github.com/lodev09/bootstrap-php/tree/master/docs/custom.md) to learn more on how to create your own component.

- [Table](docs/table.md) - Print tables from datasource
- [Button](docs/button.md) - Print simple buttons
- [Select](docs/select.md) - Print select from datasource
- [Alert](docs/alert.md) - Print alert
- [Input](docs/input.md) - Print input (text, password, etc)

*If you want me to add your own component, feel free to contribute and submit a PR!*

Usage
-----

[](#usage)

```
use \Bootstrap\Components\Table;

// somewhere in your project.
// sample data from your db
$data = [
    ['name' => 'Jovanni Lo', 'email' => 'lodev09@gmail.com'],
    ['name' => 'foo', 'email' => 'bar@email.com']
];

$table = new Table($data);
$table->cell = [
    'name' => [
        'class' => 'text-primary',
        'url' => '#docs',
        // ... so much more
    ],
    // can also be a closure
    'username' => function($row, $index, $value) {
        // print_r($row)
        return '@'.$row['username'].'';
    }
];

// print the html
$table->printHtml();
```

Feedback
--------

[](#feedback)

All bugs, feature requests, pull requests, feedback, etc., are welcome. Visit my site at [www.lodev09.com](http://www.lodev09.com "www.lodev09.com") or [![LICENSE MIT](https://camo.githubusercontent.com/5951fdd8022b67cd9bf59db9d20b3e44fcf1c7a67bcaecbc4a61379ddf773773/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4d61696c2532306d6525323061742d6c6f6465763039253430676d61696c2e636f6d2d677265656e2e737667)](mailto:lodev09@gmail.com)

Credits
-------

[](#credits)

© 2018 - Coded by Jovanni Lo / [@lodev09](http://twitter.com/lodev09)

License
-------

[](#license)

Released under the [![LICENSE MIT](https://camo.githubusercontent.com/4141875b9db06b6e19ee4c8c4f14f34b47dabb4fcdad7816e338a79666b0aacb/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d7265642e737667)](http://opensource.org/licenses/MIT)See [LICENSE](LICENSE) file.

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~26 days

Recently: every ~8 days

Total

35

Last Release

1897d ago

Major Versions

0.1.20 → 1.0.02020-11-24

PHP version history (2 changes)v0.1.1PHP &gt;=5.3

0.1.4PHP &gt;=5.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/ae268d2ab8c40027a0734990564c4147625c4df62e053d03c2e87ef43fcd545c?d=identicon)[lodev09](/maintainers/lodev09)

---

Top Contributors

[![lodev09](https://avatars.githubusercontent.com/u/6686328?v=4)](https://github.com/lodev09 "lodev09 (60 commits)")

---

Tags

phpframeworkhtmlclassbootstrapbootstrap-phpbootstrap-php-library

### Embed Badge

![Health badge](/badges/lodev09-bootstrap-php/health.svg)

```
[![Health](https://phpackages.com/badges/lodev09-bootstrap-php/health.svg)](https://phpackages.com/packages/lodev09-bootstrap-php)
```

###  Alternatives

[php-curl-class/php-curl-class

PHP Curl Class makes it easy to send HTTP requests and integrate with web APIs.

3.3k9.5M353](/packages/php-curl-class-php-curl-class)[krzysiekpiasecki/gentelella

A Symfony skeleton application with user account functionality based on the Twitter Bootstrap and Gentelella template

991.8k](/packages/krzysiekpiasecki-gentelella)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
