PHPackages                             jpuck/color-mixer - 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. jpuck/color-mixer

ActiveLibrary

jpuck/color-mixer
=================

Mix CSS colors like paint.

1.0.2(9y ago)36733GPL-3.0+PHPPHP ^7.0

Since Jan 15Pushed 9y ago1 watchersCompare

[ Source](https://github.com/jpuck/color-mixer)[ Packagist](https://packagist.org/packages/jpuck/color-mixer)[ RSS](/packages/jpuck-color-mixer/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (4)Used By (0)

PHP Color Mixer
===============

[](#php-color-mixer)

*Mix CSS colors like paint.*

Supports the [CSS color keywords up to Color Module Level 4](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#Color_keywords) and hexadecimal values with or without a leading hash `#`

See [`example.php`](./public/example.php) for some basic usage mixing 5 colors. The background color and the 6th panel are the mix of the given colors.

```
use jpuck\ColorMixer\Mixer;

$colors = [
    'rebeccapurple',
    '#33Ab42',
    '000000',
    '#00f',
    'red',
];

$mix = ( new Mixer(...$colors) )->mix()->hex();
```

[![color output from example.php](./docs/images/example.png)](./public/example.php)

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

[](#installation)

Requires PHP 7

Registered on [packagist](https://packagist.org/packages/jpuck/color-mixer) for easy installation using [composer](https://getcomposer.org/).

```
composer require jpuck/color-mixer

```

BranchStatus[master](https://github.com/jpuck/color-mixer)[![Build Status](https://camo.githubusercontent.com/ac30b62d5a46ec49fe7de8436a2640b2222ad44e5bfe882ffcf95a439260709e/68747470733a2f2f7472617669732d63692e6f72672f6a7075636b2f636f6c6f722d6d697865722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/jpuck/color-mixer) [![Codecov](https://camo.githubusercontent.com/54e7b20a2a51f9a8d422531b5cf1c0e3f06957e001add7ce6d1ba3ed90ddaf1c/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f6a7075636b2f636f6c6f722d6d697865722f6d61737465722e737667)](https://codecov.io/gh/jpuck/color-mixer/branch/master)[![License](https://camo.githubusercontent.com/9f4c508e50f0f7503d18babc0b23bff8bf636ebfe2f161346691aed50712891d/68747470733a2f2f706f7365722e707567782e6f72672f6a7075636b2f636f6c6f722d6d697865722f6c6963656e7365)](https://github.com/jpuck/avhost/releases/latest)[![Total Downloads](https://camo.githubusercontent.com/2391ef5b5ca566adbf026b85d8acb5cce0c3fafa9124c4bf66540601077a3513/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f646f776e6c6f6164732f6a7075636b2f636f6c6f722d6d697865722f746f74616c2e737667)](https://github.com/jpuck/avhost/releases/latest)[![Latest Stable Version](https://camo.githubusercontent.com/c80132a85716412fb86b69b7c3ec88594ef2df9e896fe75385f7e32bf2f247cd/68747470733a2f2f706f7365722e707567782e6f72672f6a7075636b2f636f6c6f722d6d697865722f762f737461626c65)](https://github.com/jpuck/avhost/releases/latest)

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

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

Total

3

Last Release

3386d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4d3f43ad248cd9c696b067b19e4e18856d78a8b2e4f2c3ee21a1d3d5cead5610?d=identicon)[jpuck](/maintainers/jpuck)

---

Top Contributors

[![jpuck](https://avatars.githubusercontent.com/u/15305396?v=4)](https://github.com/jpuck "jpuck (23 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jpuck-color-mixer/health.svg)

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

PHPackages © 2026

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