A.5. Console

A.5.1. Console_Color

Repository: PEAR - License: PHP - By Stefan Walk (lead)

This Class allows you to easily use ANSI console colors in your application.

A.5.1.1. Description

You can use Console_Color::convert to transform colorcodes like %r into ANSI control codes. print Console_Color::convert(“%rHello World!%n”); would print “Hello World” in red, for example.

A.5.2. Console_Getopt

Repository: - License: PHP License -

Command-line option parser

A.5.2.1. Description

This is a PHP implementation of “getopt” supporting both short and long options.

A.5.3. Console_ProgressBar

Repository: PEAR - License: PHP - By Stefan Walk (lead)

This class provides you with an easy-to-use interface to progress bars.

A.5.3.1. Description

The class allows ...

Get PHP 5 Power Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.