PEAR Manual
Prev |  | Next

# PEAR_Registry::packageExists()

PEAR_Registry::packageExists() -- Check for Package

## Synopsis

    require_once 'PEAR/Registry.php';

``boolean PEAR_Registry::packageExists` (string $package)`

## Description

Checks wether a Package is registered in the registry or not.

## Parameter

string `$package`

  Package name

## Return value

`boolean` - `TRUE` if package is registered

## 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_Registry::listPackages() | Up | PEAR_Registry::packageInfo()