All page names need to be in English.
en da  de  fr  it  ja  km  nl  ru  zh


From TYPO3Wiki
Jump to: navigation, search
Extension detail information
Install, delete, update PEAR-packages, use it in your own extensions.
documentation state stable document state list
licence OCL
usergroups list of usergroups Administrators, forDevelopers, forIntermediates
author(s) Daniel Brüßler
TER category misc

<< Back to Extension manuals page


What does it do?

Install, delete, update PEAR-packages, use it in your own extensions.

Install pear before other PEAR-extensions. You can correct the extension-order [extListArray] in the Install Tool - but don't put it before a system-extension.

With this global variables you can check if a PEAR-package is installed and if the "auto-pilot"/ include_path setting is active:


For a shipped-in package within your extension put it at the END of the include_path. Why? Because so admins can update the package.

The central path for the PEAR-packages has changed: "typo3conf/pear/PEAR". The "auto-pilot" puts this as first PEAR-package into the include_path. Use the INSTALL-manager to put pear as last extension in the extension-key-list, if you want to update PEAR-packages from any TYPO3-extension.

This extension is managed by ECT / Extension Coordination Team. See mailinglist news://t.t.extension-coordination and bugtracker "tx_pear".

SECURITY: Best is if you secure the folder typo3conf/pear/ by .htaccess - otherwise use the activate/protect button. The icon of the module in the menu is changing. In the moment you have to reload the menu by yourself to see the current state of it.

Further information

Thanks for translation:Fabien Udriot (french )

have phun

(pear manual v1.1.6 +0 changes)


Pear-installationInProgress.jpgWhile installation

Users manual

For Admins: just install the extension, then follow the Administration-part. From time to time check for updates of the packages. In future the updates will also be handled by the Extension Manager.

For Extension-Developers: Use the "ini_set"-version for include_path, because so users of your extension do NOT have to care for that setting. Each PEAR-package has a version-function - just test that! In future the kickstarter will have the dependency-setting "pear-depends" - so you can set what package-versions you need.

FAQ - How to translate the Installer

open the file "locallang.xml" of the "mod1"-folder in your favorite text-editor and see how I added the german translation. Just send your changed file to me (Daniel Brüßler) and I add it for all.

Thanks: Fabien Udriot for french translation

FAQ - How to get beta or alpha packages

Pear-UsersManual stable-beta-alpha.jpgklick at "Configuration"-button on the left side. You see a settings-table and look for "Preferred Package State". Change the setting from "stable" to "beta" and klick "submit".


Just klick at "download", then "install", "next".

Configuration while install: You need not to change something! Just if you're behind a proxy you have to insert the name.

Now you see the install-process of the most important PEAR-packages.

When it's ready you see the link at the footer of the page:"Start Web Frontend of the PEAR Installer >>"

As test type this in the search-box: "PEAR_Info"

Always secure the PEAR Manager after you have used it

Pear-Adminstration secure.gif

HowTo switch off the "auto-pilot" for include_path

Klick at Extension Manager, look for the pear-Extension, klick at it for the details. You now see the configuration - remove the check mark.

Special for Windows

After you have downloaded and installed PHP, you have to manually execute the batch file located in e.g. c:\php\go-pear.bat. The setup will ask you some questions and afterwards the PEAR Package Manager will be installed in the path, which you have specified during installation. Finally you have to add that installation path to your PATH environment. Either do this manually (Start > Control Panel > System > Environment) or run (double-click) the newly generated PEAR_ENV.reg that's now found in the PHP source directory. After that you can access the PEAR Package Manager by running the command pear in a Windows Command Prompt.

To update your PEAR installation from, request in your browser and save the output to a local file go-pear.php. You can then run it in a Windows Command Prompt to start the update process:

php go-pear.php

Configuration not needed

The installation goes automatically!! You need not to change something! Just if you're behind a proxy you have to insert the name.

Tutorial to use PEAR-packages

When your installation is ready the PEAR Manager shows you how to set the include_path to localconf/ext/pear/PEAR.

As a start: install the package "PEAR_Info" (just type the name in the search-box of PEAR Manager), check that include_path is correct, disable the PEAR Manger again, and then put this into a new extension or as single PHP-file:

     require_once 'PEAR/Info.php';

     // If you need to set a http_proxy value at run-time you can use the 
     following, this must be called BEFORE instantiating the PEAR_Info object
     // PEAR_Info::setProxy('');

     // Instantiate PEAR_Info object
     $info = new PEAR_Info();

     // Show output

Known problems

The Safe Mode/ open_basedir - restriction is not handled in the moment. If you find a solution then please contact me at, Daniel Brüßler. If somebody is behind a proxy then please tell me what settings are needed. Thanks!!

For Windows-problems see GNU Utils (

If you find a bugs so please report it to bugtracker category "tx_pear".

To-Do list

Workaround for current and old versions of Extension Manager:

  • ship the PEAR-class with your extension - as fallback
  • link from your BE-module to the PearManager (if installed) so that people can update by itself

Next step for this Extension:

  • create "bridge"-functions or a service that uses this pear-extension to get the right package-version

Future version of Extension Manager: Call pear-extension to check if package X ist available and what version it has, make request for installation when package X is in need. Provide settings for stable / beta/ alpha in Extension Manager. Put PEAR Manager as function into the Extension Manager.

When Extension Manager and TER provides pear-dependencies the kickstarter can be extended to use the kind "pear-depends".


See bugtracker.

Changelog is pear/ChangeLog

See current version