PEAR_Installer::install() – Installs package files


require_once 'PEAR/Installer.php';

array PEAR_Installer::install ( string $pkgfile , array $options = array() )


Installs the files within the package file specified.


string $pkgfile

path to the package file

array $options

installating options, to enable an option use the option name as array key and TRUE or 1 as value.

  • $options['force'] = 1 - force installation

  • $options['register-only'] = 1 - update registry but don't install files

  • $options['upgrade'] = 1 - upgrade existing install

  • $options['soft'] = 1 - fail silently

Return value

array package info if successful


Possible PEAR_Error values
Error code Error value Meaning Solution


This function can not be called statically.

constructor (Previous) PEAR (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.