定制 cebe/color-nick 二次开发

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

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

cebe/color-nick

最新稳定版本:1.0.0

Composer 安装命令:

composer require cebe/color-nick

包简介

A simple PHP lib that can color nick names to make them distinguishable in a chat room.

README 文档

README

A simple PHP lib that can color nick names to make them distinguishable in a chat room. Each color is unique to the name so each name keeps its color regardless of the time, system or whatever circumstances. This is done using a sha1 hash on the name and taking the first 7 characters in it hex representation to calculate the color.

Latest Stable Version Total Downloads

Requirements

PHP 5.4 or higher.

Installation

Using Composer:

composer require cebe/color-nick

Usage

<?php

use cebe\colornick\Color;

require(__DIR__ . '/vendor/autoload.php');

$color = Color::calculateColor($name);

See example.php for a working example. Here is a screenshot of the output:

Screenshot of color-nick library rendering result

License

MIT, see LICENSE file for more details.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0
  • 更新时间: 2014-10-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固