All Projects → bvanhoekelen → terminal-style

bvanhoekelen / terminal-style

Licence: Apache-2.0 license
🎨 Return your terminal message in style! Change the text style, text color and text background color from the terminal, console or shell interface with ANSI color codes. Support for Laravel and Composer.

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to terminal-style

leeks.js
Simple ANSI styling for your terminal
Stars: ✭ 12 (-25%)
Mutual labels:  color, style, ansi
log-utils
Basic logging utils: colors, symbols and timestamp.
Stars: ✭ 24 (+50%)
Mutual labels:  color, style, ansi
theme-ui-native
Build consistent, themeable React Native apps based on constraint-based design principles
Stars: ✭ 67 (+318.75%)
Mutual labels:  color, style
go-color
A lightweight, simple and cross-platform package to colorize text in terminals
Stars: ✭ 65 (+306.25%)
Mutual labels:  color, ansi
react-native-styled-text
Styled Text for React Native
Stars: ✭ 57 (+256.25%)
Mutual labels:  color, style
Monolog Colored Line Formatter
Colored/ANSI Line Formatter for Monolog
Stars: ✭ 108 (+575%)
Mutual labels:  color, ansi
Neural Tools
Tools made for usage alongside artistic style transfer projects
Stars: ✭ 150 (+837.5%)
Mutual labels:  color, style
strip-ansi-stream
Strip ANSI escape codes
Stars: ✭ 32 (+100%)
Mutual labels:  color, ansi
paper-terminal
Print Markdown to a paper in your terminal
Stars: ✭ 33 (+106.25%)
Mutual labels:  color, ansi
przm
🎨 A simple, yet feature rich color picker and manipulator
Stars: ✭ 19 (+18.75%)
Mutual labels:  color, command-line-tool
Gvcci
color extraction to turn images into 16 color palettes
Stars: ✭ 86 (+437.5%)
Mutual labels:  color, ansi
ansi-to-svg
😹 convert ANSI Escaped CLI strings to SVGs
Stars: ✭ 18 (+12.5%)
Mutual labels:  color, ansi
Tiza
Console styling for browsers
Stars: ✭ 74 (+362.5%)
Mutual labels:  color, style
Colorizeswift
Terminal string styling for Swift.
Stars: ✭ 253 (+1481.25%)
Mutual labels:  color, ansi
Rang
A Minimal, Header only Modern c++ library for terminal goodies 💄✨
Stars: ✭ 1,080 (+6650%)
Mutual labels:  color, ansi
Nord Highlightjs
An arctic, north-bluish clean and elegant highlight.js theme.
Stars: ✭ 49 (+206.25%)
Mutual labels:  color, style
Pixterm
Draw images in your ANSI terminal with true color
Stars: ✭ 782 (+4787.5%)
Mutual labels:  color, ansi
Przm
🎨 A simple, yet feature rich color picker and manipulator
Stars: ✭ 17 (+6.25%)
Mutual labels:  color, command-line-tool
yachalk
🖍️ Terminal string styling done right
Stars: ✭ 131 (+718.75%)
Mutual labels:  color, ansi
concolor
Colouring template strings using tags with annotations 🎨
Stars: ✭ 35 (+118.75%)
Mutual labels:  color, ansi

PHP Terminal style

Hex.pm GitHub release Packagist Github issues

Highlight

How to use

 echo terminal_style($message = null, $color = null, $background = null, $style = null);

Text color

PHP Terminal style set text color

Code example

// Print red text 
echo terminal_style('Here your text', 'red');

Text color names

Use can use: default, yellow, red, green, light-gray ...

See the full color name list here

Background color

PHP Terminal style set background color

Code example

// Print text with background red
echo terminal_style('Here your text', null, 'red');

Background colors names

Use can use: default, yellow, red, green, light-gray ...

See the full background color name list here or see custom background color

Text style

PHP Terminal style set style

Code example

// Print text style bold
echo terminal_style('Here your text', null, null, 'bold');

Text styles

Use can use: default, bold , dim, italic, underlined, 'blink' ...

See the full text style name list here

Help, docs and links

Backlog & Feedback

If you have any suggestions to improve this php terminal style tool? Please add your feature, bug or improvement to the BACKLOG.dm. Or create a issues.

Installation

Install with Laravel

Get PHP terminal style tool by running the Composer command in the command line.

 $ composer require bvanhoekelen/terminal-style

Open your file and use terminal_style()

// Print red text 
echo terminal_style('Here your text', 'red');

Install with composer

Get PHP terminal style tool by running the Composer command in the command line.

 $ composer require bvanhoekelen/terminal-style

Open your file and use terminal_style()

// Require vender autoload
require_once('../vendor/autoload.php');

// Print red text 
echo terminal_style('Here your text', 'red');

Overview

PHP Terminal style all styles

Custom background

PHP Terminal style custom backgroud

See custom background color

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].