承接 ortic/color-converter 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

ortic/color-converter

最新稳定版本:v0.1

Composer 安装命令:

composer require ortic/color-converter

包简介

color converter

README 文档

README

Build Status Code Rating Coverage Status

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

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();

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: proprietary
  • 更新时间: 2017-05-09