定制 eznio/styler 二次开发

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

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

eznio/styler

Composer 安装命令:

composer require eznio/styler

包简介

Simple CLI styling helper

README 文档

README

Overview

Simple CLI styling helper. Generates ASCII sequences to change console bg/fg-colors and some text effects

echo Styler::get(Styles::HYPERLINK) . 'this looks like a link' . Styler::reset() . "\n";

echo Styler::get([
    BackgroundColors::WHITE,
    ForegroundColors::BLUE,
    TestStyles::UNDERLINE
]) . 'this looks like a link too!' . Styler::reset() . "\n";

Reference

Styler::get(array $style)

Returns sequence for given style(-s). Preferred one.

Styler::single($style)

Returns sequence for single given style

Styler::combined(array $styles)

Returns sequence for multiple given styles

Styler::reset()

Returns reset sequence (return to console default colors)

Style reference files

  • ForegroundColors - foreground colors list
  • BackgroundColors - background colors list
  • TextStyles - list of text styles. Some of them may be not supported by your console!
  • StyleSets - some useful (sometimes) shortcuts

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-12-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固