\AcidBash

Outils Bash en PHP

Summary

Methods
Properties
Constants
shColorText()
parseShColorTag()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

shColorText()

shColorText(string  $text = '', string  $txtColor = '', string  $bgColor = '', string  $styleTxt = 'none') : string

Coloration bash

Parameters

string $text

: le text a colorer

string $txtColor

: couleur voulue (black,red,green,cyan,magenta,black...)

string $bgColor

: couleur de fond

string $styleTxt

: style du text (bold,underline,reverse,flashing)

Returns

string —

A noter que certaines mises en forme ne fonctionnent pas sous tout les clients

parseShColorTag()

parseShColorTag(string  $str) : string

Permet de mettre en forme la police d'un texte par des balises ex : Ceci est un <c c=blue bg=white s=bold>TEST</c>

Parameters

string $str

Returns

string