PEAR Manual
Prev |  | Next

# PEAR_Packager::package()

PEAR_Packager::package() -- Create Package archive

## Synopsis

    require_once 'PEAR/Packager.php';

``string PEAR_Packager::package` ([string $pkgfile = `NULL` [, boolean $compress = `TRUE`]])`

## Description

Creates a Package archive from package definition file and package files

## Parameter

string `$pkgfile`

  path to package definition file

boolean `$compress`

  if `TRUE` package archive will be compessed using gzip

## Return value

`string` - name of the created package archive

## Throws

Table 27-1. Possible PEAR_Error values

Error code | Error value | Meaning | Solution
--- | --- | --- | ---
| "" |  |

## Note

This function can not be called statically.

Prev | Home | Next
PEAR_Packager::PEAR_Packager() | Up | PEAR_Registry