承接 tecnickcom/tc-lib-color 相关项目开发

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

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

tecnickcom/tc-lib-color

最新稳定版本:2.6.0

Composer 安装命令:

composer require tecnickcom/tc-lib-color

包简介

PHP library to manipulate various color representations

README 文档

README

PHP color toolkit for conversion and normalization across common color models.

Latest Stable Version Build Coverage License Downloads

Sponsor on GitHub

If this project is useful to you, please consider supporting development via GitHub Sponsors.

Overview

tc-lib-color provides utilities for parsing, converting, and formatting color values used in web and PDF rendering pipelines.

The library is designed to centralize color logic so applications avoid ad-hoc conversion code and rounding drift across modules. It provides a consistent normalization layer that helps keep visual output aligned between browser previews and final PDF rendering.

Namespace \Com\Tecnick\Color
Author Nicola Asuni info@tecnick.com
License GNU LGPL v3 - see LICENSE
API docs https://tcpdf.org/docs/srcdoc/tc-lib-color
Packagist https://packagist.org/packages/tecnickcom/tc-lib-color

Features

Color Models

  • Grayscale (GRAY)
  • RGB/RGBA and hexadecimal color handling (RGB)
  • HSL/HSLA conversion workflows (HSL)
  • CMYK conversion workflows (CMYK)
  • CIE Lab color handling and conversion workflows (LAB)
  • Spot colors (Separation), with DeviceCMYK and Lab alternate color-space support for PDF output

Integration Helpers

  • CSS-ready color output
  • PDF-oriented color conversion helpers
  • Cross-model conversion helpers on all color models
  • Named web color lookup and normalization

Requirements

  • PHP 8.2 or later
  • Extension: pcre
  • Composer

Installation

composer require tecnickcom/tc-lib-color

Quick Start

<?php

require_once __DIR__ . '/vendor/autoload.php';

$web = new \Com\Tecnick\Color\Web();
$rgb = $web->getRgbObjFromHex('#336699');

echo $rgb->getCssColor();

See example/index.php for a complete conversion showcase.

Development

make deps
make help
make qa

Packaging

make rpm
make deb

For system packages, bootstrap with:

require_once '/usr/share/php/Com/Tecnick/Color/autoload.php';

Contributing

Contributions are welcome. Please review CONTRIBUTING.md, CODE_OF_CONDUCT.md, and SECURITY.md.

Contact

Nicola Asuni - info@tecnick.com

统计信息

  • 总下载量: 7.5M
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 24
  • 点击次数: 4
  • 依赖项目数: 8
  • 推荐数: 0

GitHub 信息

  • Stars: 24
  • Watchers: 1
  • Forks: 6
  • 开发语言: PHP

其他信息

  • 授权协议: LGPL-3.0-or-later
  • 更新时间: 2015-09-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固