PHPackages                             phpstrap/phpstrap - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. phpstrap/phpstrap

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

phpstrap/phpstrap
=================

Bootstrap layout generator

1.0.3(1y ago)1214.7k↓50%4MITPHPPHP &gt;=5.3.0

Since May 1Pushed 1y ago5 watchersCompare

[ Source](https://github.com/kktuax/PHPStrap)[ Packagist](https://packagist.org/packages/phpstrap/phpstrap)[ Docs](http://github.com/kktuax/phpstrap)[ RSS](/packages/phpstrap-phpstrap/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)DependenciesVersions (6)Used By (0)

Whats the purpose of this project?
----------------------------------

[](#whats-the-purpose-of-this-project)

Using this library you can create Bootstrap's HTML markup easily using PHP.

Features
--------

[](#features)

- Bootstrap 3 support
- Nest components in object-oriented way
- Extend the bootstrap components with custom styles
- Form validation
- Wizard component with dependant Forms

Quick start
-----------

[](#quick-start)

A full working example is available in the [repository](../master/examples/example.php).

Add the [composer](https://getcomposer.org/) dependency:

```
"require": {
   "phpstrap/phpstrap": "1.*"
}

```

Issue a composer install o composer update if you already have composer installed for your project.

Include de composer autoload directive:

```
require_once __DIR__ . '/vendor/autoload.php';
```

Include Bootstrap's CSS+JS in your PHP, for example with the CDN:

```

```

And start producing the HTML markup:

```
use PHPStrap\Panel;
$ExamplePanel = new Panel();
$ExamplePanel->addHeader("Example panel");
$ExamplePanel->addContent("My content");
echo $ExamplePanel;
```

Clone and run example
---------------------

[](#clone-and-run-example)

```
git clone https://github.com/kktuax/PHPStrap.git
cd PHPStrap/examples
composer install

```

Deploy the examples folder to your PHP-enabled server, an open your browser:

[![API DOCS](https://camo.githubusercontent.com/7cf81f624715e8b36d6eb16ea441abc0953962b233e4916f9b4efee5ee035d2e/687474703a2f2f61706967656e657261746f722e6f72672f62616467652e706e67)](http://kktuax.github.io/PHPStrap/)

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 68.9% 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 ~941 days

Total

5

Last Release

634d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3185625?v=4)[Max Tuni](/maintainers/kktuax)[@kktuax](https://github.com/kktuax)

---

Top Contributors

[![kktuax](https://avatars.githubusercontent.com/u/3185625?v=4)](https://github.com/kktuax "kktuax (82 commits)")[![JasonKaz](https://avatars.githubusercontent.com/u/959848?v=4)](https://github.com/JasonKaz "JasonKaz (34 commits)")[![PATROMO](https://avatars.githubusercontent.com/u/318564?v=4)](https://github.com/PATROMO "PATROMO (2 commits)")[![firstrow](https://avatars.githubusercontent.com/u/66944?v=4)](https://github.com/firstrow "firstrow (1 commits)")

---

Tags

csshtmltwitterlayoutbootstrap

### Embed Badge

![Health badge](/badges/phpstrap-phpstrap/health.svg)

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

###  Alternatives

[wenzhixin/bootstrap-table

An extended table to integration with some of the most widely used CSS frameworks. (Supports Bootstrap, Semantic UI, Bulma, Material Design, Foundation)

11.8k283.4k1](/packages/wenzhixin-bootstrap-table)[onokumus/metismenu

A jQuery menu plugin

2.0k263.3k5](/packages/onokumus-metismenu)[cwspear/bootstrap-hover-dropdown

An unofficial Bootstrap plugin to enable Bootstrap dropdowns to activate on hover and provide a nice user experience.

1.3k153.1k](/packages/cwspear-bootstrap-hover-dropdown)[awssat/tailwindo

Convert Bootstrap CSS to Tailwind CSS

1.1k20.3k1](/packages/awssat-tailwindo)[ttskch/select2-bootstrap4-theme

Select2 v4 theme for Bootstrap4

43424.6k2](/packages/ttskch-select2-bootstrap4-theme)[mediawiki/chameleon-skin

A highly flexible MediaWiki skin using Bootstrap 4

12481.8k2](/packages/mediawiki-chameleon-skin)

PHPackages © 2026

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