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

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

ortic/color-converter
=====================

color converter

v0.1(9y ago)55.4k↑598.2%proprietaryPHPPHP &gt;=7.0

Since May 6Pushed 9y ago1 watchersCompare

[ Source](https://github.com/ortic/color-converter)[ Packagist](https://packagist.org/packages/ortic/color-converter)[ RSS](/packages/ortic-color-converter/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (5)Versions (3)Used By (0)

color-converter
===============

[](#color-converter)

[![Build Status](https://camo.githubusercontent.com/9f8e4c45014f3a5f8c583bd4698a40ec7377b989f403520c284d6859ce60481c/68747470733a2f2f6170692e7472617669732d63692e6f72672f6f727469632f636f6c6f722d636f6e7665727465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ortic/color-converter)[![Code Rating](https://camo.githubusercontent.com/ac1db8dc5c3ae3971961f8dde18965870afc2b28bf08704ee77ddab6910af983/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6f727469632f636f6c6f722d636f6e7665727465722e7376673f7374796c653d666c6174)](https://scrutinizer-ci.com/g/ortic/color-converter/)[![Coverage Status](https://camo.githubusercontent.com/37e9d5a03743cc0a810e49f90a8086d0894eae447bf37811fe0cd4b56bb922ab/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6f727469632f636f6c6f722d636f6e7665727465722e7376673f7374796c653d666c6174)](https://scrutinizer-ci.com/g/ortic/color-converter/)

Helps you to convert between the various ways to define a color in CSS.

Examples
--------

[](#examples)

Assuming you've got a string resembling a color, just call the `fromString` method to get a color object back.

```
$color = Color::fromString('#ff0000');
```

The hex representation is not the only support schema:

```
$color = Color::fromString('red');
$color = Color::fromString('rgb(255, 0, 0)');
$color = Color::fromString('hsl(0, 100%, 50%)');
```

Once you have a color object you can get a HEX representation like this:

```
echo $color->toHex();
```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

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

Unknown

Total

1

Last Release

3342d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9288570e91c034c82414fc2085a87344711e329feb063d21ab7b18ece811234e?d=identicon)[Remo](/maintainers/Remo)

---

Top Contributors

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

---

Tags

colorcssphp

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

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

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

###  Alternatives

[link1st/laravel-easemob

环信即时通讯laravel包开发，用于环信用户、群、聊天室等功能

446.6k](/packages/link1st-laravel-easemob)[owenmelbz/https-enforcement

Laravel 5.x middleware to enforce https redirection for your app.

252.6k](/packages/owenmelbz-https-enforcement)

PHPackages © 2026

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