The Config package provides methods for configuration manipulation.
* Creates configurations from scratch
* Parses and outputs different formats (XML, PHP, INI, Apache...)
* Edits existing configurations
* Converts configurations to other formats
* Allows manipulation of sections, comments, directives...
* Parses configurations into a tree structure
* Provides XPath like access to directives
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.
Console_CommandLine is a full featured package for managing command-line
options and arguments highly inspired from python optparse module, it allows
the developer to easily build complex command line interfaces.
Main features:
* handles sub commands (ie. $ myscript.php -q subcommand -f file),
* can be completely built from an xml definition file,
* generate --help and --version options automatically,
* can be completely customized,
* builtin support for i18n,
* and much more...
PEAR::Console_Getargs implements a Command Line arguments and
parameters parser for your CLI applications.
It performs some basic arguments validation and automatically creates
a formatted help text, based on the given configuration.
PHP classes providing methods such as addRow(), insertRow(), addCol(), etc.
to build Console tables.
Can be with or without headers, and has various configurable options.
PEAR generic classes for representation and manipulation of dates,
times and time zones without the need of timestamps, which is a
huge limitation for php programs. Includes time zone data, time
zone conversions and many date/time conversions.
It does not rely on 32-bit system date stamps, so you can display
calendars and compare dates that date pre 1970 and post 2038. This
package also provides a class to convert date strings between
Gregorian and Human calendar formats.
Date_Holidays helps you calculating the dates and titles of holidays
and other special celebrations. The calculation is driver-based so
it is easy to add new drivers that calculate a country's holidays.
The methods of the class can be used to get a holiday's date and
title in various languages.
This package allows reading and writing of OLE (Object Linking and Embedding)
files, the format used as container for Excel, Word and other MS file formats.
The Event_Dispatcher acts as a notification dispatch table.
It is used to notify other objects of interesting things. This
information is encapsulated in Event_Notification objects. Client
objects register themselves with the Event_Dispatcher as observers of
specific notifications posted by other objects. When an event occurs,
an object posts an appropriate notification to the Event_Dispatcher.
The Event_Dispatcher dispatches a message to each registered
observer, passing the notification as the sole argument.
The FSM package provides a simple class that implements a Finite State Machine.