PHPackages                             org\_heigl/color - 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. org\_heigl/color

ActiveLibrary

org\_heigl/color
================

A Library to handle Colors. This includes conversion to and from different spaces including ICC-profiles as well as modifying existing colors

92.3k1[3 PRs](https://github.com/heiglandreas/OrgHeiglColor/pulls)PHPCI failing

Since Apr 9Pushed 5y ago1 watchersCompare

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

READMEChangelog (1)DependenciesVersions (7)Used By (0)

Color - Handling for PHP
========================

[](#color---handling-for-php)

This library helps handling colors and ICC-Profiles in PHP

[![Build Status](https://camo.githubusercontent.com/1bf3d6379405bd4eee548bf8734a397a16fa4f2b88c17e9e89c4f70f8a463e57/68747470733a2f2f7472617669732d63692e6f72672f686569676c616e64726561732f4f7267486569676c436f6c6f722e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/heiglandreas/OrgHeiglColor)

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

[](#installation)

Installation is best done using composer like this:

```
composer require org_heigl/color

```

Requirements
------------

[](#requirements)

This library requires at least PHP 5.5 and is tested up to PHP 7.0

Usage
-----

[](#usage)

Reading different informations from an ICC-Profile.

```
use Org_Heigl\Color\Profile as P;

$profile = P\Renderer::renderProfile('/path/tp/profile', new P\Profile());
echo $profile->getTable('desc')->getContent() // Outputs the Name of the profile
```

You can use it as described in this short example. For more examples have a look at the documentation.

```
// This uses a gras-green and changes it to a lighter variation
// for usage as background-color
use Org_Heigl\Color as C;
$color   = C\ColorFactory::createFromRgb(123,234,12);
$handler = C\Handler\HandlerFactory::getHslHandler($color);
$handler->setLuminance(0.8);
echo C\Renderer\RendererFactory::getRgbHexRenderer()->render($handler->getColor());
// Prints #ccfa9e
```

alternate Example using a CMYK-Color as input and merging it with an RGB-Color to get a new color as HSL-Value

```
// This uses a dark green as input color and merges it with a light red
use Org_Heigl\Color as C
$green = C\ColorFactory::createFromCmyk(100, 0, 100, 0);
$red   = C\ColorFactory::createFromRgb(255, 128, 128);
$handler = C\Handler\HandlerFactory::getMergeHandler($green);
$handler->merge($red);
echo C\Renderer\RendererFactory::getHslRenderer()->render($handler->getColor());
// Prints hsl(h.hh,s.ss,l.ll);
```

License
-------

[](#license)

This library is licensed unser the MIT-License

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94.7% 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/5ae5183aaad2bc7453230704bd6991dc6ccbcd6e775c6a29efdc94350a69f247?d=identicon)[heiglandreas](/maintainers/heiglandreas)

---

Top Contributors

[![heiglandreas](https://avatars.githubusercontent.com/u/91998?v=4)](https://github.com/heiglandreas "heiglandreas (18 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (1 commits)")

### Embed Badge

![Health badge](/badges/org-heigl-color/health.svg)

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

PHPackages © 2026

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