Download the PHP package psdi/motif without Composer
On this page you can find all versions of the php package psdi/motif. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package motif
Motif
A simple PHP tool for formatting output text on a terminal.
Installation
Install using composer:
Include the flag
--no-dev
if you want to omit installing PHPUnit (which isn't exactly a lightweight framework).
Usage
The Formatter
class has three main output functions:
format
takes a string as well as a style string
The style string has the following syntax:
[format,styles]|color:[color]|bg:[background]
. The order of the styles doesn't matter; you can even omit them.
formatLine
expands onformat
; however, it appends a line break to the textdisplay
accepts a text as well as a mode (success, warning, error, info). The function prints the text with the corresponding background color (green, yellow, red, blue).
The above code would bring about:
Contributions
If you spot bugs or have any suggestions, feel free to add them to the issue tracker.
All versions of motif with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.0
The package psdi/motif contains the following files
Loading the files please wait ....