PHPackages                             anthocodeur/multicolors-converter - 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. anthocodeur/multicolors-converter

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

anthocodeur/multicolors-converter
=================================

A very simple tool to convert colors into differents formats

2.1.0(9mo ago)09MITPHPPHP &gt;=8.0

Since Feb 10Pushed 9mo ago1 watchersCompare

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

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

Color Converter by anthowd
==========================

[](#color-converter-by-anthowd)

ColorConverter is a modern PHP package that provides robust and precise conversions between various color formats, including Hexadecimal, RGB, and RAL color systems. Leveraging encapsulated converters (`HexConverter`, `RalConverter`, `RgbConverter`), it enables easy and precise manipulation of colors.

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

[](#installation)

Install this package easily via Composer:

```
composer require anthocodeur/multicolors-converter
```

Usage
-----

[](#usage)

You can use the static methods provided by the dedicated converter classes to convert colors between different formats.

### Convert Hexadecimal to RGB

[](#convert-hexadecimal-to-rgb)

```
use ColorConverter\HexConverter;

$hex = '#FF0000';
$rgb = HexConverter::hexToRgb($hex);
print_r($rgb); // ['R' => 255, 'G' => 0, 'B' => 0]
```

### Convert RGB to Hexadecimal

[](#convert-rgb-to-hexadecimal)

```
use ColorConverter\RgbConverter;

$r = 255;
$g = 0;
$b = 0;
$hex = RgbConverter::rgbToHex($r, $g, $b);
echo $hex; // #ff0000
```

### Convert RGB to RAL

[](#convert-rgb-to-ral)

```
use ColorConverter\RalConverter;

$r = 255;
$g = 0;
$b = 0;
$ral = RalConverter::rgbToRalValue($r, $g, $b);
echo $ral; // e.g., RAL1000
```

### Convert RAL to RGB

[](#convert-ral-to-rgb)

```
use ColorConverter\RalConverter;

$ral = 'RAL1000';
$rgb = RalConverter::ralToRgb($ral);
print_r($rgb); // ['R' => 203, 'G' => 186, 'B' => 136]
```

Contributing
------------

[](#contributing)

Contributions are welcome! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines on how to contribute to this project.

License
-------

[](#license)

This package is open-source software licensed under the MIT License. See the [LICENSE](LICENSE) file for details.

###  Health Score

32

—

LowBetter than 71% of packages

Maintenance61

Regular maintenance activity

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

Total

4

Last Release

279d ago

Major Versions

v1.0.1 → 2.0.02025-08-02

PHP version history (2 changes)v1.0PHP &gt;=7.4

2.0.0PHP &gt;=8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/940b6978157321a15fcd0ecad8e6eb6723d29235f67e121909575065a4a10fd6?d=identicon)[anthowd](/maintainers/anthowd)

---

Top Contributors

[![anthocodeur](https://avatars.githubusercontent.com/u/77467334?v=4)](https://github.com/anthocodeur "anthocodeur (6 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/anthocodeur-multicolors-converter/health.svg)

```
[![Health](https://phpackages.com/badges/anthocodeur-multicolors-converter/health.svg)](https://phpackages.com/packages/anthocodeur-multicolors-converter)
```

###  Alternatives

[cjmellor/level-up

This package allows users to gain experience points (XP) and progress through levels by performing actions on your site. It can provide a simple way to track user progress and implement gamification elements into your application

66188.9k](/packages/cjmellor-level-up)[olvlvl/composer-attribute-collector

A convenient and near zero-cost way to retrieve targets of PHP 8 attributes

184108.8k8](/packages/olvlvl-composer-attribute-collector)[trafficcophp/bytebuffer

Node.js inspired byte stream buffer for PHP.

33437.2k17](/packages/trafficcophp-bytebuffer)

PHPackages © 2026

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