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

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

dewsign/color
=============

A micro package to convert and alter colors!

v0.1.2(6y ago)133MITPHPPHP ^7.1

Since Oct 18Pushed 6y ago4 watchersCompare

[ Source](https://github.com/dewsign/color)[ Packagist](https://packagist.org/packages/dewsign/color)[ RSS](/packages/dewsign-color/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (3)Used By (0)

Color
=====

[](#color)

A micro PHP package to convert and alter colors! 🔥 Forked from liquidpineapple/color, which seems to have vanished from github completley...

Contents of this document:

- [Installation](#installation)
- [Documentation](#documentation)
- [Contributing](#contributing)

Installation
============

[](#installation)

You can install this package through composer. To install the latest version in to your project use the following command:

```
composer require dewsign/color
```

This package requires PHP 7.0 or higher.

Documentation
=============

[](#documentation)

Table of contents:

1. [**Conversion**](#1-conversion)

    b) [Output](#1a-output)

    a) [Types](#1b-types)
2. [**Alteration**](#2-alteration)

    a) [Lightness](#2a-lightness)

    b) [Saturation](#2b-saturation)

1. Conversion
-------------

[](#1-conversion)

You can use this package to convert colors to different notations. An example might be converting HEX to RGB:

```
