PHPackages                             doublesecretagency/craft-bootstrap - 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. doublesecretagency/craft-bootstrap

AbandonedArchivedCraft-plugin[Utility &amp; Helpers](/categories/utility)

doublesecretagency/craft-bootstrap
==================================

Build your site with the Bootstrap front-end framework.

4.1.3.2(4y ago)34.0k3MITPHP

Since Jun 10Pushed 4y ago1 watchersCompare

[ Source](https://github.com/doublesecretagency/craft-bootstrap)[ Packagist](https://packagist.org/packages/doublesecretagency/craft-bootstrap)[ RSS](/packages/doublesecretagency-craft-bootstrap/feed)WikiDiscussions v4 Synced 2w ago

READMEChangelogDependencies (3)Versions (8)Used By (0)

Bootstrap plugin for Craft CMS
==============================

[](#bootstrap-plugin-for-craft-cms)

> This is a plugin wrapper for adding Bootstrap to a Craft CMS site.
>
> Credit for the Bootstrap library belongs to the [Bootstrap](https://getbootstrap.com/) team.

---

⚠️ **The Bootstrap plugin for Craft CMS is no longer being maintained.** It will be retired when Craft 4 is released.

✉️ If you are interested in taking ownership of this repo, please [contact us](https://www.doublesecretagency.com/contact).

---

---

Automatically Loads Bootstrap
-----------------------------

[](#automatically-loads-bootstrap)

Once you've installed the plugin, the Bootstrap CSS and JS files will immediately be loaded into the front-end of your site. If you don't want them to be included on every page, you can disable auto-loading on the Settings page.

If you've disabled auto-loading, you can have Bootstrap load only on the pages where you need it:

```
{% useBootstrap %}
```

It doesn't matter where on the page you add that tag... the Bootstrap assets will be loaded as long as it exists somewhere in your Twig template.

In the rare case where you may want to load the assets via PHP, that's possible too:

```
Bootstrap::$plugin->useBootstrap();
```

---

Make sure your custom CSS and/or JS loads last
----------------------------------------------

[](#make-sure-your-custom-css-andor-js-loads-last)

You'll probably want Bootstrap (and/or jQuery) to finish loading before you run any additional JS. Here's how to ensure your custom resources get loaded last...

```
{% do view.registerCssFile(url('path/to/styles.css'), {'depends': bootstrapAssets}) %}
{% do view.registerJsFile(url('path/to/script.js'), {'depends': bootstrapAssets}) %}
```

This tells Craft that your files *depend* on the Bootstrap assets to be loaded first.

`bootstrapAssets` is a variable which gets loaded automatically. It's simply the path Craft needs to locate the Bootstrap assets.

---

Uses a CDN in production
------------------------

[](#uses-a-cdn-in-production)

To lighten the load, this plugin will switch to loading Bootstrap via a CDN when it runs in a production environment.

If you don't want this feature, or if your production environment uses a name other than `production`, you can control those details on the Settings page.

---

Settings
--------

[](#settings)

[![](src/resources/img/example-settings.png)](src/resources/img/example-settings.png)

---

Anything else?
--------------

[](#anything-else)

We've got other plugins too!

Check out the full catalog at [doublesecretagency.com/plugins](https://www.doublesecretagency.com/plugins)

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community9

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

Recently: every ~328 days

Total

7

Last Release

1622d ago

### Community

Maintainers

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

---

Top Contributors

[![lindseydiloreto](https://avatars.githubusercontent.com/u/5309692?v=4)](https://github.com/lindseydiloreto "lindseydiloreto (12 commits)")

---

Tags

cmsbootstrapCraftcraftcmscraft-plugintwitter bootstrap

### Embed Badge

![Health badge](/badges/doublesecretagency-craft-bootstrap/health.svg)

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

###  Alternatives

[verbb/formie

The most user-friendly forms plugin for Craft.

100387.6k58](/packages/verbb-formie)[nystudio107/craft-seomatic

SEOmatic facilitates modern SEO best practices &amp; implementation for Craft CMS 5. It is a turnkey SEO system that is comprehensive, powerful, and flexible.

1741.5M52](/packages/nystudio107-craft-seomatic)[verbb/navigation

Create navigation menus for your site.

92698.4k18](/packages/verbb-navigation)[verbb/field-manager

Manage your fields and field groups with ease.

195612.2k10](/packages/verbb-field-manager)[verbb/workflow

Enforce multi-step review processes for creating entries.

138123.0k1](/packages/verbb-workflow)[verbb/comments

Add comments to your site.

13753.7k](/packages/verbb-comments)

PHPackages © 2026

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