Skip to content

datomatic/color-helper

Repository files navigation

Color Helper-DarkColor Helper-Light

Color Helper

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

A PHP toolkit class to manage colors functionalities

Installation

You can install the package via composer:

composer require datomatic/color-helper

Usage

use Datomatic\Color\Color;
$color = Color::fromHex('#ffffff');
$color->rgb(); // ['r' => 255, 'g' => 255, 'b' => 255] 
$color->hsl(); // ['h' => 0, 's' => 0, 'l' => 100] 
$color->hsv(); // ['h' => 0, 's' => 0, 'v' => 100] 
$color->cmyk(); // ['c' => 0, 'm' => 0, 'y' => 0, 'k' => 0] 

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

About

A PHP toolkit class to manage colors functionalities

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages