georgec/colour
最新稳定版本:1.0.0
Composer 安装命令:
composer require georgec/colour
包简介
Parse and manipulate CSS colour strings
README 文档
README
Parse and manipulate CSS colour string from PHP.
Supported formats
- 3 digit hex
- 6 digit hex
- 9 digit hex
- RGB
- HSL
- Named colours
Usage
Install with composer require georgec/colour.
use Gc\Colour\Colour;
$initialColour = new Colour("rgb(188 93 27)");
$hexColour = $initialColour->asHex();
$hexColour->format(); // #bc5d1b
Contributing
Please send patches to my public-inbox mailing list.
Also see the issue tracker.
统计信息
- 总下载量: 12
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-07-06