PHPackages                             conkal/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. conkal/color

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

conkal/color
============

Color manipulation library

v0.1.0(4y ago)03MITPHP

Since May 3Pushed 4y ago1 watchersCompare

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

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

[![Build](https://github.com/cengizonkal/color/workflows/Build/badge.svg)](https://github.com/cengizonkal/color/workflows/Build/badge.svg)

Color
=====

[](#color)

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

[](#installation)

```
composer require conkal/color

```

### fromHex

[](#fromhex)

```
$color = Color::fromHex('#990000');
```

### lighten

[](#lighten)

```
// lighten by 10%
$color = Color::fromHex('#990000')->lighten(30);
```

### darken

[](#darken)

```
// darken by 10%
$color = Color::fromHex('#990000')->darken(30);
```

### shades

[](#shades)

gives an array of colors

```
$colors = Color::fromHex('#990000')->shades(3);
```

 0=&gt;#990000

 1=&gt;#cc0000

 2=&gt;#ff0000

 3=&gt;#ff0000

-1=&gt;#650000

-2=&gt;#320000

-3=&gt;#000000

### invert

[](#invert)

```
$color = Color::fromHex('#ff0000')->invert();
```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

1475d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cb4b44348f594e1fc43ce6f40d31092b71c288d5897b4a992012e4efa37fca6b?d=identicon)[Cengiz Önkal](/maintainers/Cengiz%20%C3%96nkal)

---

Top Contributors

[![cengizonkal](https://avatars.githubusercontent.com/u/3024926?v=4)](https://github.com/cengizonkal "cengizonkal (13 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

PHPackages © 2026

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