PHPackages                             phpcolor/bootstrap-colors - 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. phpcolor/bootstrap-colors

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

phpcolor/bootstrap-colors
=========================

Bootstrap Colors - PHP Color Palette

v0.2.0(2y ago)15MITPHPPHP &gt;=8.3

Since Apr 10Pushed 3mo agoCompare

[ Source](https://github.com/phpcolor/bootstrap-colors)[ Packagist](https://packagist.org/packages/phpcolor/bootstrap-colors)[ Docs](https://phpcolor.dev/)[ RSS](/packages/phpcolor-bootstrap-colors/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (6)Used By (0)

Bootstrap Colors
================

[](#bootstrap-colors)

This package provides access to the color palettes used in Bootstrap CSS.

[![Bootstrap Colors](Resources/colors.svg)](Resources/colors.svg)

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

[](#installation)

```
composer require phpcolor/bootstrap-colors
```

Usage
-----

[](#usage)

### Color names

[](#color-names)

```
use PhpColor\Colors\Bootstrap\PicoColors as Bootstrap;

$colors = Bootstrap::colors();

$names = $colors->getNames();
// 'blue', 'indigo', 'purple', 'pink', 'red', 'orange'
// 'yellow', 'green', 'teal', 'cyan', 'gray'
```

### Color shades

[](#color-shades)

```
use PhpColor\Colors\Bootstrap\PicoColors as Bootstrap;

$colors = Bootstrap::colors();

$shades = $colors->getShades();
// 100,  200,  300,  400,  500,  600,  700,  800,  900
```

### Color values

[](#color-values)

```
use PhpColor\Colors\Bootstrap\PicoColors as Bootstrap;

$colors = Bootstrap::colors();

echo $colors->teal;             // #14b8a6
echo $colors->teal();           // #14b8a6
echo $colors->teal(500)         // #14b8a6

echo $colors->get('teal');      // #14b8a6
echo $colors->get('teal', 500); // #14b8a6
```

---

[![Bootstrap Colors](Resources/colors.svg)](Resources/colors.svg)

Credits
-------

[](#credits)

The colors listed in this project are based on the colors used by [Bootstrap](https://getbootstrap.com).

License
-------

[](#license)

This [PHPColor](https://phpcolor.dev) package is released under the [MIT license](LICENSE).

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance53

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

Total

5

Last Release

747d ago

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/a798e0337c09608ab5c3d78d5bd120490a8e8689c4ef026bea27cfc136c7d60c?d=identicon)[raphael-geffroy](/maintainers/raphael-geffroy)

---

Top Contributors

[![smnandre](https://avatars.githubusercontent.com/u/1359581?v=4)](https://github.com/smnandre "smnandre (10 commits)")

---

Tags

bootstrapcolorcolorspalettephpscalethemecolorscalethemebootstrappalette

### Embed Badge

![Health badge](/badges/phpcolor-bootstrap-colors/health.svg)

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

###  Alternatives

[ttskch/select2-bootstrap4-theme

Select2 v4 theme for Bootstrap4

43424.6k2](/packages/ttskch-select2-bootstrap4-theme)[lukapeharda/tailwindcss-color-palette-generator

Generate TailwindCSS color palette from a single color.

22102.1k1](/packages/lukapeharda-tailwindcss-color-palette-generator)[presseddigital/colorit

A slick color picker fieldtype plugin for the Craft CMS 3 control panel.

2132.1k](/packages/presseddigital-colorit)[entidi/silverstrap

A Silverstripe theme based on Bootstrap front end framework

111.4k1](/packages/entidi-silverstrap)

PHPackages © 2026

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