Re-using PEAR_Size -- Embedding it in your own application
Re-using PEAR_Size
PEAR_Size consists of several core classes plus some ancillary ones.
Most important is the PEAR_Size class itself which performs the
data-gathering process and then initiates the generation of the output
report (using the analyse() and
generateReport() methods respectively). The format
of the report is set using the setOutputDriver()
method.
If writing a command-line script that will utilise the power of PEAR_Size it
is best to use the PEAR_Size_CLI class and
run() for parsing the details and options set at the
command prompt.