PHPackages                             battis/bootstrapsmarty - 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. [Templating &amp; Views](/categories/templating)
4. /
5. battis/bootstrapsmarty

AbandonedArchivedLibrary[Templating &amp; Views](/categories/templating)

battis/bootstrapsmarty
======================

A wrapper for Smarty to set (and maintain) defaults within a Bootstrap UI environment

v2.0.1(9y ago)0251[2 issues](https://github.com/battis/bootstrapsmarty/issues)2LGPL-3.0PHP

Since Dec 9Pushed 4y ago2 watchersCompare

[ Source](https://github.com/battis/bootstrapsmarty)[ Packagist](https://packagist.org/packages/battis/bootstrapsmarty)[ RSS](/packages/battis-bootstrapsmarty/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependencies (6)Versions (9)Used By (2)

BootstrapSmarty
===============

[](#bootstrapsmarty)

[![Latest Version](https://camo.githubusercontent.com/ecf477a7aaaff52767eb3c5d09dab7f0846b4c173df9cae96db7fdf21d99ada8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6261747469732f626f6f747374726170736d617274792e737667)](https://packagist.org/packages/battis/bootstrapsmarty)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/9fb8bce0ab8fe633f080717683f978d669c7e56c6f20e577d953704f869e7406/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6261747469732f626f6f747374726170736d617274792f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/battis/bootstrapsmarty/?branch=master)

A wrapper for Smarty to set (and maintain) defaults within a Bootstrap UI environment

Install
-------

[](#install)

Because this makes use of front-end files managed via Bower, as well as the back-end managed by Composer, it is *really, really, super-helpful* to run the following command before trying to work with this package:

```
composer global require "fxp/composer-asset-plugin:^1.1"
```

Find out more about [`fxp/composer-asset-plugin`](https://github.com/francoispluchino/composer-asset-plugin) and [Bower](http://bower.io/).

And then, include in `composer.json`:

```
"require": {
  "battis/bootstrapsmarty": "~1.0"
}
```

Use
---

[](#use)

If you have no templates of your own:

```
use Battis\BootstrapSmarty\BootstrapSmarty;
$smarty = BootstrapSmarty::getSmarty();

// ...app logic...

$smarty->assign('content', 'whatever content you want displayed');
$smarty->display();
```

If you have your own templates directory:

```
$smarty->addTemplateDir('path/to/your/templates_dir');
```

If you have your own stylesheet:

```
$smarty->addStylesheet('path/to/your/stylesheet.css');
```

Complete [API documentation](https://battis.github.io/bootstrapsmarty/namespaces/Battis.BootstrapSmarty.html) is included in the repo and the [Smarty API documentation](http://www.smarty.net/docs/en/) is also online.

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 90% 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 ~88 days

Recently: every ~108 days

Total

7

Last Release

3323d ago

Major Versions

v1.1.2 → v2.02016-08-01

### Community

Maintainers

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

---

Top Contributors

[![battis](https://avatars.githubusercontent.com/u/419619?v=4)](https://github.com/battis "battis (9 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (1 commits)")

### Embed Badge

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

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

###  Alternatives

[modx/revolution

MODX Revolution is a Content Management System

1.4k9.4k12](/packages/modx-revolution)[ytake/laravel-smarty

Smarty template engine for Laravel and Lumen

85406.6k](/packages/ytake-laravel-smarty)[noiselabs/smarty-bundle

This Symfony bundle provides integration for the Smarty3 template engine.

54195.6k1](/packages/noiselabs-smarty-bundle)

PHPackages © 2026

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