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

ActiveLibrary

bicou/color-mixer
=================

Spectral color mixer

01[4 PRs](https://github.com/gbicou/color-mixer/pulls)PHPCI passing

Since Jan 28Pushed 1mo ago1 watchersCompare

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

READMEChangelogDependenciesVersions (6)Used By (0)

Spectral color mixer
====================

[](#spectral-color-mixer)

This package provides a spectral color mixer for use with [spatie/color](https://github.com/spatie/color) or [matthieumastadenis/couleur](https://github.com/matthieumastadenis/couleur).

Based on Spectral.js, itself based on the Kubelka-Munk theory.

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

[](#installation)

```
composer require bicou/color-mixer
```

Usage with spatie/color
-----------------------

[](#usage-with-spatiecolor)

```
use Spatie\Color\Hex;
use Bicou\ColorMixer\Spatie\SpatieMixer;

$yellow = Hex::fromString('#f2de24');
$blue = Hex::fromString('#3f58fc');

$mixer = new SpatieMixer($yellow, $blue);

$green = $mixer->at(0.5);
echo $green->toHex(); // #7ca64d
```

Usage with matthieumastadenis/couleur
-------------------------------------

[](#usage-with-matthieumastadeniscouleur)

```
use matthieumastadenis\couleur\colors\HexRgb;
use Bicou\ColorMixer\Couleur\CouleurMixer;

$yellow = new HexRgb('F2', 'DE', '24');
$blue = new HexRgb('3F', '58', 'FC');

$mixer = new CouleurMixer($yellow, $blue);

$green = $mixer->at(0.5);
echo $green->toHexRgb(); // #7CA64D
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance61

Regular maintenance activity

Popularity1

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity18

Early-stage or recently created project

 Bus Factor1

Top contributor holds 52.6% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/887951f5c636a6b9c2ae532cbddf9e07025c359b6dafa7a3fed970d78c1c6eec?d=identicon)[bicou](/maintainers/bicou)

---

Top Contributors

[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (100 commits)")[![gbicou](https://avatars.githubusercontent.com/u/174636?v=4)](https://github.com/gbicou "gbicou (90 commits)")

### Embed Badge

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

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

PHPackages © 2026

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