定制 projectcleverweb/color 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

projectcleverweb/color

Composer 安装命令:

composer require projectcleverweb/color

包简介

This is a stand-alone PHP 7 (and PHP 5!) library for working with RGB, HSL, HSB/HSV, Hexadecimal, and CMYK colors. Create schemes, modify specific color properties, easily convert between color spaces, create gradients, and make color suggestions quickly and easily.

README 文档

README

This is a PHP 7 library for working with RGB, HSL, and Hexadecimal colors. Create schemes, modify specific color properties, export CMYK, and make color suggestions quickly and easily with this stand-alone library.

Demo: jsfiddle.net/t3LL4q14

Download:

GitHub release

Copyright © 2016 Nicholas Jordon — All Rights Reserved

Features

  • Convert any color between the RGB, HSL, HSB, Hexadecimal, and CMYK color spectrums.
  • Dynamically generate 10 different color scheme algorithims for any color. (That's over 165,000,000 possible schemes)
  • Check whether a color appears visually dark or light. (uses YIQ weights for better accuraccy)
  • Easily modify a color's hue, saturation, light, red, green, blue, and alpha (transparcency) values.
  • Generate CSS values on the fly
  • Find the contrast between 2 colors.
  • Dynamically generate random colors, including for specific color ranges.
  • All errors are recoverable, and errors can be triggered as exceptions (default), using trigger_error(), or can be turned off for all instances.

Installation & Usage

See the Official Wiki on Github for all documentation.

Contributing

Contributing via Suggestions:
The best way to submit a suggestion is to open an issue on Github and prefix the title with [Suggestion]. Alternatively, you can email your suggestions to projectcleverweb(at)gmail(dot)com.

Contributing via Reporting Problems:
All problems must be reported via Github's issue tracker.

Contributing via Code:

  1. Fork the repo on Github: github.com/ProjectCleverWeb/PHP-Color
  2. Make your changes.
  3. Send a pull request to have your changes reviewed.

License

The PHP-Color documentation & source code (hereafter referred to as "Library") by Nicholas Summers (hereafter referred to as "Author") is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License with the below "Additional Terms" superseding it. To view a copy of the Creative Commons license, visit creativecommons.org/licenses/by-nc-nd/4.0. From now on "License" refers to this combination of licensing.

Additional Terms:

  1. Any person or non-profit entity or may use this Library for personal or professional use as long as the Library as well as any of its parts are not sold in any fashion, and users are not forced to pay to use it in any way.
  2. Anyone may use this Library for purely internal use as long as the Library as well as any of its parts are available without payment and are not publicly accessible.
  3. Anyone seeking to sell this Library or use this Library in a commercial environment MUST first obtain a OEM license from the Author.
  4. Anyone in direct violation of this License is liable for a minimum of $50,000 in damages, plus an additional $10 per user, and agrees to refund any charge or fees collected as a result of violating this License.
  5. By downloading or using this Library you agree to all the License terms.

projectcleverweb/color 适用场景与选型建议

projectcleverweb/color 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 849.08k 次下载、GitHub Stars 达 23, 最近一次更新时间为 2026 年 01 月 04 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「theme」 「object」 「color」 「class」 「split」 「manipulation」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 projectcleverweb/color 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 projectcleverweb/color 我们能提供哪些服务?
定制开发 / 二次开发

基于 projectcleverweb/color 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

  • Stars: 23
  • Watchers: 3
  • Forks: 8
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04