.. You may want to use the usual include line. Uncomment and adjust the path. .. include:: ../Includes.txt ========= EXT: pear ========= :Author: Kasper Skårhøj :Created: 2002-11-01T00:32:00 :Changed: 2008-04-18T23:31:05 :Keywords: extension, PEAR :Author: ExtensionCoordinationTeam, Daniel Bruessler :Email: info@patchworking.de :Info 3: :Info 4: extension, PEAR .. _EXT-pear: EXT: pear ========= Extension Key: **pear** Copyright 2007-2008, ExtensionCoordinationTeam, Daniel Bruessler, This document is published under the Open Content License available from http://www.opencontent.org/opl.shtml The content of this document is related to TYPO3 \- a GNU/GPL CMS/Framework available from www.typo3.com .. _Table-of-Contents: Table of Contents ----------------- **EXT: pear 1** **Introduction 1** What does it do? 1 Screenshots 2 **Users manual 2** FAQ – How to translate the Installer 2 FAQ – How to get beta or alpha packages 2 **Adminstration 2** Always secure the PEAR Manager after you have used it3 HowTo switch off the “auto-pilot” for include\_path 3 Special for Windows 3 **Configuration not needed 3** **Tutorial to use PEAR-packages 3** **Known problems 4** **To-Do list 4** **Changelog is pear/ChangeLog 4** .. _Introduction: Introduction ------------ .. _What-does-it-do: What does it do? ^^^^^^^^^^^^^^^^ Install, delete, update PEAR-packages, use it in your own extensions. TYPO3 4.2 bugfixed. Install pear **before other PEAR** -extensions. You can correct the extension-order [extList] in Install Manager - but don't put it before a system-extension. With this global variables you can check **if a PEAR-package is installed already** and if the " **auto-pilot** "/ include\_path setting is active: :: $TYPO3_CONF_VARS['PEAR']['isAuto'] #and $TYPO3_CONF_VARS['PEAR']['packagePath'] 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. See mailinglist news://t.t.extension-coordination and http://bugs.typo3.org 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\* `http://typo3.org/teams/extension-coordination- team/ `_ \* SECURITY INFO - Be sure to disable the PEAR Manager after installing.\* `http://pear.php.net/ `_ \* `http://pear.php.net/manual/en/installation.getting.php `_ **Thanks for translation:** Fabien Udriot (french ) have phun (pear manual v1.1.6) .. _Screenshots: Screenshots ^^^^^^^^^^^ |img-1| While installation .. _Users-manual: 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: 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 (info@patchworking.de, Daniel Bruessler) and I add it for all. Thanks: Fabien Udriot (french) .. _FAQ-How-to-get-beta-or-alpha-packages: FAQ – How to get beta or alpha packages ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |img-2| klick 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". .. _Adminstration: Adminstration ------------- 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" .. _img-3-Always-secure-the-PEAR-Manager-after-you-have-used-it: |img-3| Always secure the PEAR Manager after you have used it ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. _HowTo-switch-off-the-auto-pilot-for-include-path: 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: 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 go-pear.org, request http://pear.php.net/go-pear 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: 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: 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: :: show(); ?> .. _Known-problems: Known problems -------------- The Safe Mode/ open\_basedir – restriction is not handled in the moment. If you find a solution then please contact me at `info@patchworking.de `_ , Daniel Bruessler. If somebody is behind a proxy then please tell me what settings are needed. Thanks!! For Windows-problems see GNU Utils (http://gnuwin32.sourceforge.net/packages/wget.htm) If you find a bugs so please report it to http://bugs.typo3.org bugtracker category “tx\_pear”. .. _To-Do-list: 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". .. _Changelog-is-pear-ChangeLog: Changelog is pear/ChangeLog --------------------------- |img-4| EXT: pear - 4 .. ######CUTTER_MARK_IMAGES###### .. |img-1| image:: img-1.png .. :align: left .. :border: 0 .. :height: 281 .. :id: graphics1 .. :name: graphics1 .. :width: 669 .. |img-2| image:: img-2.png .. :align: left .. :border: 0 .. :height: 181 .. :id: graphics2 .. :name: graphics2 .. :width: 669 .. |img-3| image:: img-3.png .. :align: left .. :border: 0 .. :height: 268 .. :id: graphics3 .. :name: graphics3 .. :width: 614 .. |img-4| image:: img-4.png .. :align: left .. :border: 0 .. :height: 32 .. :id: Graphic1 .. :name: Graphic1 .. :width: 102