PHPackages                             petehouston/color-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. petehouston/color-converter

ActiveLibrary

petehouston/color-converter
===========================

Convert color between Hex and RGB.

1.1.0(9y ago)115MITPHP

Since Oct 30Pushed 9y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (3)Used By (0)

Color Converter
===============

[](#color-converter)

[![Build Status](https://camo.githubusercontent.com/8e5d6fdd2764763d9652f855752ef019af259908dd44ed25785a9526aa4ffd81/68747470733a2f2f7472617669732d63692e6f72672f70657465686f7573746f6e2f636f6c6f722d636f6e7665727465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/petehouston/color-converter)

The simple PHP library to convert between Hex and RGB.

Usage
-----

[](#usage)

One single class **ColorConverter** with two functions:

**hex2rgb(string $hex)**

*return an array with 3 values of Reg, Green and Blue*.

**rgb2hex(int $red, int $green, int $blue)**

*return a hex string respresentation*.

Added build with Travis CI.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

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

Total

2

Last Release

3480d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e3bd650ae2924847027ca5ff3cd7d1c0dd2d5f87bbb5e218bd273a32928e727e?d=identicon)[petehouston](/maintainers/petehouston)

---

Top Contributors

[![petehouston](https://avatars.githubusercontent.com/u/9006720?v=4)](https://github.com/petehouston "petehouston (8 commits)")

### Embed Badge

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

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

PHPackages © 2026

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