定制 wildphp/authenticator 二次开发

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

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

wildphp/authenticator

Composer 安装命令:

composer require wildphp/authenticator

包简介

Tiny RBAC library written in PHP

README 文档

README

Build Status Scrutinizer Code Quality Scrutinizer Code Coverage Latest Stable Version Latest Unstable Version Total Downloads

Tiny library to format text according to the IRC standard.

Installation

To install this package, you need Composer.

$ composer require wildphp/irc-textformatter ^0.1

Usage

The formatter works as a utility class. It exposes the following methods:

  • bold(string $text)
  • italic(string $text)
  • underline(string $text)
  • color(string $text, string $foreground, string $background = '') (see below what colors are supported)

Along with the above basic methods, some more advanced methods are provided:

  • findColorByString(string $color) - returns a numeric string with the color code based on human readable input ('white' will return '00', see the color table below)
  • calculateStringColor(string $stringToColor) - returns a numeric string with color code based on string contents
  • consistentStringColor(string $stringToColor) - same as above, but pre-applies the color to the string

It also allows you to strip various formatting elements from text:

  • stripBold(string $text)
  • stripItalic(string $text)
  • stripUnderline(string $text)
  • stripColor(string $text)

Color table

Human-readable IRC color code
white 00
black 01
blue 02
green 03
red 04
brown 05
purple 06
orange 07
yellow 08
lime 09
teal 10
aqua 11
royal 12
fuchsia 13
grey 14
silver 15

Contributors

You can see the full list of contributors in the GitHub repository.

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 3
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-04-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固