PEAR

From Triangle Wiki

Jump to: navigation, search

Contents

Introduction

PEAR (The PHP Extension and Application Repository) provides some features needed in the Triangle Admin system. PEAR provides well written and well maintained components that cannot be found in other Frameworks.

Please note the commands outlined here are based on Ubuntu.

Initial Commands

Similar to apt-get pear needs to update its package listing the channel update provides the command to download the latest list.

  • sudo pear channel-update pear.php.net

Setting the preferred state to Alpha may not seem the most sensible thing to do; but some packages simply never seem to get out of the Alpha stage even though they are very mature.

  • sudo pear config-set preferred_state alpha

Upgrade all the current packages - this will usually update PEAR from the one downloaded through apt-get.

  • sudo pear upgrade-all

Downloading And Install A Tarball

Sometimes it may be necessary to simply download a package and install it seperatly.

  • sudo pear download pager
  • sudo pear install pager-2.4.2.tgz

PEAR Packages Required

Alphabetical list of PEAR packages that are required by the admin programme. Package name first, (include file in parentheses).

  1. PEAR_HTTP_Download - pear install -a HTTP_Download
    1. PEAR_Archive_Zip - pear install -a Archive_Zip
  2. PEAR_Benchmark - pear install -a Benchmark
  3. PEAR_CacheLite - pear install -a Cache_Lite
  4. PEAR_PHP_Compat - pear install -a PHP_Compat
  5. PEAR_Date - pear install -a Date
  6. PEAR_MDB2 - pear install -a MDB2
  7. PEAR_MDB2_Driver_mysql - pear install -a MDB2_Driver_mysql
  8. PEAR_MDB2_Driver_mysqli - pear install -a MDB2_Driver_mysqli
  9. PEAR_DB_DataObject - pear install -a DB_DataObject
  10. PEAR_DB_DataObject_Formbuilder - pear install -a DB_DataObject_FormBuilder
    1. PEAR_HTML_Table - pear install -a HTML_Table
  11. PEAR_HTML_QuickForm - pear install -a HTML_QuickForm
  12. PEAR_HTTP_Upload - pear install -a HTTP_Upload
  13. PEAR_Log - pear install -a Log
  14. PEAR_Mail - pear install -a Mail
  15. PEAR_Mail_Mime - pear install -a Mail_Mime
  16. PEAR_Net_FTP - pear install -a Net_FTP
  17. PEAR_Pager - pear install -a Pager
  18. PEAR_Services_ExchangeRates - pear install -a Services_ExchangeRates
    1. PEAR_HTTP_Request - pear install -a HTTP_Request
  19. PEAR_Structures_DataGrid - pear install -a Structures_DataGrid
    1. All Datasources - pear install -a Structures_DataGrid#datasources
    2. All Renderers - pear install -a Structures_DataGrid#renderers
  20. PEAR_Text_Captcha - pear install -a Text_Captcha
  21. PEAR_Text_Wiki_BBCode - pear install -a Text_Wiki_BBCode
    1. PEAR_Text_Wiki - pear install -a Text_Wiki
  22. PEAR_Translation2 - pear install -a Translation2

Please follow the instructions for setting up the Translation2 decorator cache. PEAR_Translation2

External Links

Navigation

[Edit Navigation]

Personal tools