bitandblack/color-hash 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

bitandblack/color-hash

最新稳定版本:2.2.0

Composer 安装命令:

composer require bitandblack/color-hash

包简介

Generates a color based on a given string.

README 文档

README

PHP from Packagist Total Downloads License

Bit&Black Logo

Bit&Black Color Hash

Generates a color based on a given string.

This library is based on shahonseven/php-color-hash which is a PHP port of ColorHash Javascript Library, but adds a lot more functions.

Installation

This library is made for the use with Composer. Add it to your project by running $ composer require bitandblack/color-hash.

Usage

<?php 

use BitAndBlack\ColorHash\ColorHash;

$colorHash = new ColorHash('Hello World');

You can access the color values then in an array by calling $colorHash->getValues() or echo the whole object.

This library used bitandblack/colors, so you can get the color information in many different color spaces. To get it for example in CMYK write $colorHash->getCMYK(). There are HEX, RGB, CIALab and many more available.

Help

If you have any questions, feel free to contact us under hello@bitandblack.com.

Further information about Bit&Black can be found under www.bitandblack.com.

统计信息

  • 总下载量: 1.06k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-10-23