PHP Extension and Application Repository

PHP Extension and Application Repository

The PHP Extension and Application Repository, or PEAR, is a repository of PHP software code. Stig S. Bakken founded the PEAR project in 1999 to promote the re-use of code that performs common functions. The project seeks to provide a structured library of code, maintain a system for distributing code and for managing code packages, and promote a standard coding style. Though community-driven, the PEAR project has a PEAR Group which serves as the governing body and takes care of administrative tasks. Each PEAR code package comprises an independent project under the PEAR umbrella. It has its own development team, versioning-control and documentation.

A PEAR package is distributed as a gzipped tar file. Each archive consists of source code written in PHP, usually in an object-oriented style. Many PEAR packages can readily be used by developers as ordinary third party code via simple include statements in PHP. More elegantly, the PEAR package manager which comes with PHP by default may be used to install PEAR packages so that the extra functionality provided by the package appears as an integrated part of the PHP installation. Unlike the Comprehensive Perl Archive Network (CPAN) archives, which PEAR took as its model, PEAR packages do not have implicit dependencies so that a package's placement in the PEAR package tree does not relate to code dependencies. Rather, PEAR packages must explicitly declare all dependencies on other PEAR packages.

The PEAR base classes contain code for simulating object-oriented destructors and consistent error-handling. Packages exist for many basic PHP functions including authentication, caching, database access, encryption, configuration, HTML, web services and XML.

PECL (PHP Extension Community Library, pronounced 'pickle') is conceptually very similar to PEAR, and indeed PECL modules are installed with the PEAR Package Manager. PECL contains C extensions for compiling into PHP. As C programs , PECL extensions run more efficiently than PEAR packages. PECL includes modules for XML-parsing, access to additional databases, mail-parsing, embedding Perl or Python in PHP scripts and for compiling PHP scripts. PECL spun off from the PEAR Project in October 2003. Originally it was called the PEAR Extension Code Library, but it now operates independently of PEAR.

PEAR package manager

The PEAR package manager provides an easy way to install, uninstall, or upgrade with new PEAR packages or PECL extensions. Before installing a package it can also be instructed to take care of package dependencies so all the extra needed packages are installed too.

The PEAR package manager is run from the command line using the pear command. Usually it is therefore only the server administrator who can alter the installed base of PEAR and PECL extensions. On PHP installations running on Linux, the PEAR package manager is ready for usage by default, but on Windows the PEAR package manager it only available after running a batch file called go-pear.bat.

External links

* [http://pear.php.net The PEAR Project]
* [http://pecl.php.net PECL]
* [http://w3dreams.blogspot.com/2007/04/pear-db-extension.html Introduction to PEAR DB Extension]
* [http://www.phpbuilder.com/columns/stump20021223.php3 PEAR Primer]
* [http://builder.com.com/5100-6374-1045409.html Speed PHP application development by using PEAR]
* [http://www.easysoft.com/developer/languages/php/pear-db-odbc.html Accessing ODBC Databases with PHP and PEAR DB]
* [http://www.sematopia.com/?p=28 How To: Install Apache, PHP, PEAR, MySQL & phpMyAdmin for Windows XP]


Wikimedia Foundation. 2010.

Игры ⚽ Поможем сделать НИР

Look at other dictionaries:

  • PHP Extension and Application Repository — oder PEAR ist eine Bibliothek (oft engl. Library) von Modulen und Erweiterungen für die Skriptsprache PHP. Jeder Entwickler kann eigene Module via PEAR vertreiben, sofern er diese unter eine der fünf zugelassenen Open Source Lizenzen stellt.[1]… …   Deutsch Wikipedia

  • PHP-License — Die PHP License (engl. license: „Lizenz“) ist eine von der PHP Group herausgegebene Softwarelizenz, die die freie Verwendung und Veränderung der Quelltexte erlaubt. Sie ist von der Open Source Initiative (OSI)[1] und der Free Software Foundation… …   Deutsch Wikipedia

  • PHP License — Die PHP License (engl. license: „Lizenz“) ist eine von der PHP Group herausgegebene Softwarelizenz, die die freie Verwendung und Veränderung der Quelltexte erlaubt. Sie ist von der Open Source Initiative (OSI)[1] und der Free Software Foundation… …   Deutsch Wikipedia

  • PHP — This article is about the scripting language. For other uses, see PHP (disambiguation). PHP PHP: Hypertext Preprocessor Paradigm(s) imperative, object oriented, Procedural, reflective Appeared in …   Wikipedia

  • PECL — PHP Extension and Application Repository oder PEAR ist eine Bibliothek (oft engl. Library) von Modulen und Erweiterungen für die Skriptsprache PHP. Jeder Entwickler kann eigene Module via PEAR vertreiben, sofern er diese unter eine der fünf… …   Deutsch Wikipedia

  • PEAR — Php Extension And Application Repository (Computing » Software) * Pear Technologies, Inc. (Business » NASDAQ Symbols) * Personal Education Assistance And Referral (Community » Educational) …   Abbreviations dictionary

  • JavaScript — Не следует путать с Java. JavaScript Класс языка: мультипарадигменный …   Википедия

  • PEAR — For other uses, see Pear (disambiguation). The PHP Extension and Application Repository, or PEAR, is a repository of PHP software code. Stig S. Bakken founded the PEAR project in 1999 to promote the re use of code that performs common functions.… …   Wikipedia

  • PEAR — (pour PHP Extension and Application Repository) est une collection de bibliothèques PHP. C est aussi une application qui permet de gérer les bibliothèques (installer ou mettre à jour une bibliothèque). On peut comparer ce système avec les gems de …   Wikipédia en Français

  • LAMPP — XAMPP Entwickler: Apache Friends Aktuelle Version: 1.7.1 (15. April 2009) …   Deutsch Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”