PHP 5 Power Programming

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 you to display progress bars in your terminal. You can use this for displaying the status of downloads or other tasks that take some time.

A.5.4. Console_Table

Repository: PEAR - License: BSD - By Richard Heyes (lead) - Tal Peer (lead) - Xavier Noguer (lead)

Class that makes it easy to build console style tables

A.5.4.1 Description

Provides methods such as addRow(), insertRow(), addCol() etc to build Console tables. Can be with or without headers, and has various configurable options.

A.5.5. ecasound

Repository: - License: PHP -

Ecasound provides audio recording and processing functions

A.5.5.1 Description

This extension wraps the Ecasound libraries to provide advanced audio processing capabilities.

A.5.5.2 System_Command

Repository: PEAR - License: PHP License - By Dan Allen (lead) - Anders Johannsen (developer)

PEAR::System_Command is a commandline execution interface.

A.5.5.3 Description

System_Command is a commandline execution interface. Running functions from the commandline can be risky if the proper precautions are not taken to escape the shell arguments and reaping the exit status properly. This class provides a formal interface to both, so that you can run a system command as comfortably as you would run a php function, with full pear error handling as results on failure. It is important to note that this class, unlike other implementations, distinguishes between output to stderr and output to stdout. It also reports the exit status of the command. So in every sense of the word, it gives php shell capabilities.

A.5.6. win32std

Repository: PECL - License: PHP - By Eric Colinet (lead) - Frank M. Kromann (developer)

Access to some Win32 usefull API.

A.5.6.1 Description

Contains:

  • RES (access to resource of .exe/.dll files on Win32)

  • RES stream wrapper for reading. Compatible with the res protocol defined by MS

  • REGISTRY access

  • Common Win32 dialogs (open/save file, open dir, message boxes)

  • Wrapper for some standard function (win_shell_execute, win_play_wav, win_beep, win_create_link)

A.5.7. xmms

Repository: PECL - License: PHP - By Rasmus Lerdorf (lead) - Stig Bakken (helper)

Provides functions to interact with xmms

A.5.7.1 Description

A simple libxmms extension

    Категории