O'Reilly logo

PHP 5 Power Programming by Derick Rethans, Stig Sæther Bakken, Andi Gutmans

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required