PHPackages                             ilp/bootstrap-theme-bundle - 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. ilp/bootstrap-theme-bundle

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

ilp/bootstrap-theme-bundle
==========================

Symfony2 Boostrap Theme/Template management bundle, with live theme editing

0.2.2(11y ago)2106MITJavaScriptPHP &gt;=5.3.0

Since Jun 30Pushed 11y ago1 watchersCompare

[ Source](https://github.com/ilikeprograms/BootstrapThemeBundle)[ Packagist](https://packagist.org/packages/ilp/bootstrap-theme-bundle)[ Docs](https://github.com/ilikeprograms/BootstrapThemeBundle)[ RSS](/packages/ilp-bootstrap-theme-bundle/feed)WikiDiscussions master Synced 6d ago

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

Bootstrap Theme Bundle
======================

[](#bootstrap-theme-bundle)

Boostrap Theme Bundle provided the ability to manage themes/templates of Bootstrap based Symfony2 projects. You can integrate the live editor to allow your themes to be edited live and the changes to a theme saved.

There is also a service which allows you to compile the changes to the theme and get information about the current theme.

For example usage see (Corvus)\[\]

This project makes use of (Cluckles)\[\] for the Live editing features.

Getting Started
---------------

[](#getting-started)

To get started using BootstrapThemeBundle, add the project and its dependencies to your app's composer.json file.

```
{
    "require": {
        "ilp/bootstrap-theme-bundle": "~0.1.0",
        "oyejorge/less.php": "~1.5"
    }
}
```

Then enable the Bundle in your AppKernel

```
$bundles = array(
// ... Other Dependencies
    new ILP\BootstrapThemeBundle\ILPBootstrapThemeBundle()
);
```

Then provide the folders which hold your theme/template folders which you want the bundle to manage (config.yml), aswell as the Bundle which holds the Resources (in the format below, Vendor and Bundle Name without "Bundle")

```
ilp_bootstrap_theme:
    theme_base: 'src/Corvus/FrontendBundle/Resources/public/css'
    template_base: 'src/Corvus/FrontendBundle/Resources/views'
    bundle: CorvusFrontend # Not case sensitive (Corvus = Vendor, Frontend = Bundle name)
```

These folders expect that `public/css` and `Resources/views` will have folders with the name of the theme/templates. The `Resources/views/*` folders will be expected to hold the twig templates for the current theme. The `public/css` folder will be expected to hold folders with the theme files for the current theme.

Using Themes
------------

[](#using-themes)

By default if you have a folder in the `public/css` folder, it will be treated as a Theme directory, if it has no theme.css file, one will be automatically created for it. This theme.css file will have the generic base Twitter Bootstrap styling.

To change this Theme, the BoostrapThemeBundle's editor can be used, there is an `themeEditor.html.twig` view which can be included in another template to provide the editor view. This view can then be interacted with to customise the current theme.

Then you need to include the base `bootstrap.less` so that it can be modified live

```
# theme_editor.bootstrap path returns the path to the Custom bootstrap.less file included with Cluckles

```

Finally you need to include the theme-editor js and initialise an instance, this will allow you to edit and save the changes

```
{% include 'ILPBootstrapThemeBundle:Default:editor-js.html.twig' %}

    var themeEditor = new ThemeEditor(less, {
        theme: {
            // theme_manager.getCurrentThemeJsonPath returns the web path to the current theme's theme.json file
            src: '{{ asset(theme_manager.getCurrentThemeJsonPath) }}'
        },
        export: {
            // Attach Export buttons to this element
            target: '#download-panel-footer',

            // Provide Export buttons for Css and JSON Formats
            css: {},
            json: {},

            save: {
                // Save Css and Json
                formats: ['css', 'json'],
                append: "#download-panel-footer",

                // Send the Modifications to here
                url: '{{ path('ilp_bootstrap_theme_EditorSaveModifications') }}',

                // Optional Callback
                callback: function () {
                    alert('Theme Changes have been Saved');
                }
            }
        }
    });

```

A download/save link will be in the `themeEditor.html.twig` view which will enable the changes to be saved. They will be posted to the `theme-editor/save` url (relative to the project url) and the `theme_manager`service will then compile and save the changes.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 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 ~16 days

Recently: every ~30 days

Total

9

Last Release

4213d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/662870?v=4)[Thomas Coleman](/maintainers/ilikeprograms)[@ilikeprograms](https://github.com/ilikeprograms)

---

Top Contributors

[![ilikeprograms](https://avatars.githubusercontent.com/u/662870?v=4)](https://github.com/ilikeprograms "ilikeprograms (44 commits)")

### Embed Badge

![Health badge](/badges/ilp-bootstrap-theme-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/ilp-bootstrap-theme-bundle/health.svg)](https://phpackages.com/packages/ilp-bootstrap-theme-bundle)
```

###  Alternatives

[mustache/mustache

A Mustache implementation in PHP.

3.3k44.6M291](/packages/mustache-mustache)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[whitecube/nova-flexible-content

Flexible Content &amp; Repeater Fields for Laravel Nova.

8053.0M25](/packages/whitecube-nova-flexible-content)[mopa/bootstrap-bundle

Easy integration of twitters bootstrap into symfony2

7042.9M33](/packages/mopa-bootstrap-bundle)[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3871.2M](/packages/limenius-react-bundle)[symfony/ux-icons

Renders local and remote SVG icons in your Twig templates.

545.8M69](/packages/symfony-ux-icons)

PHPackages © 2026

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