PEAR

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.

## Contents

* 1 PEAR packages
* 2 PEAR package manager
* 3 PEAR2 Pyrus
* 4 PEAR and Composer
* 5 PECL
* 6 See also
* 7 References
* 8 External links

## PEAR packages

A PEAR package is distributed as a gzipped tar file. Each archive consists of source code written in PHP, . 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[citation needed], PEAR packages do not have implicit d ot 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.

PEAR means “PHP Extension and Application Repository.” It is a framework and distribution system for reusable PHP components. It extends PHP and gives a higher level of programming for all web developers. PEAR is divided into three different classes that are: PEAR Core Components, PEAR Packages, and PECL Packages. The PEAR Packages include functionality giving for authentication, networking, and file system features and tools for working with HTML and XML templates.

## PEAR package manager

The PEAR package manager provides a standardized 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 is only available after running a batch file called `go-pear.bat`.

## PEAR2 Pyrus

With Pyrus an attempt was undertaken to redesign and improve PEAR from the ground up for PHP 5.3 or newer.[1] Pyrus can be used to install packages from PEAR channels. The last release is from March 2011 and its development might have been discontinued due to the popularity of Composer.[2]

## PEAR and Composer

With Composer there is an alternative available for managing packages for a PHP project. Composer also supports the installation of PEAR packages.[3] Some people [by whom?] of the PHP community argue for replacing PEAR in favor of composer.[4] [5]

## PECL

The PHP Extension Community Library (PECL), (pronounced 'pickle'[6]) 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.[7]

PECL extensions are documented alongside standard extensions within the PHP Manual, so there is no special manual for PECL extensions. Also, several[example needed] extensions began their development cycle in PECL and ended up in core (the distributed PHP source) and in many[example needed] of these cases the PECL versions become unmaintained.

## See also

* Composer

## References

1. ↑ "PEAR2_Pyrus - PEAR2". https://pear2.php.net/PEAR2_Pyrus.
2. ↑ "PHP - What is the difference between PEAR and Composer?". https://stackoverflow.com/questions/34199824/what-is-the-difference-between-pear-and-composer.
3. ↑ "Repositories - Composer". https://getcomposer.org/doc/05-repositories.md#pear.
4. ↑ "The rise of Composer and the fall of PEAR |Articles - Fabien Potencier". http://fabien.potencier.org/the-rise-of-composer-and-the-fall-of-pear.html.
5. ↑ "Blast from the Past - Is PEAR still relevant?". 16 June 2025. https://thephp.cc/articles/blast-from-the-past.
6. ↑ "Manual :: What is PEAR?". https://pear.php.net/manual/en/about.pear.php.
7. ↑ Jansen, Martin (2003-10-15). "Own infrastructure for PECL". PEAR Website Team. https://pear.php.net/news/pecl-split.php. "PECL, formerly known as PHP Extension Code Library, has been renamed to PHP Extension Community Library."

## External links

* The PEAR Project
* The PECL Project

* v
* t
* e

PHP

People|

* Andi Gutmans
* Rasmus Lerdorf
* Zeev Suraski

Resources|

* Accelerator (List)
* Composer
* Editors
* Libraries
* PEAR

Implementations|

* HHVM
* HPHPc
* Parrot
* PeachPie
* Phalanger
* Quercus
* Zend Engine

Web frameworks|

* CakePHP
* CodeIgniter
* Drupal
* eZ Publish
* Fat-Free
* FuelPHP
* Horde
* Joomla!
* Laravel
* Li3 (formerly Lithium)
* Midgard
* MODx
* Nette Framework
* Phalcon
* Pop PHP
* PHP-Fusion
* PRADO
* Qcodo
* Silex
* SilverStripe
* Symfony
* TYPO3
* WordPress
* XOOPS
* Yii
* Zend Framework
* Zeta Components

Testing|

* Behat
* PHPUnit
* Lime (Symfony)

ORMs|

* Doctrine
* Propel

IDEs|

* Aptana
* Codelobster
* Eclipse PDT
* NetBeans
* PHPEdit
* PhpStorm
* RadPHP
* Zend Studio

Widget toolkit|

* PHP-GTK
* wxPHP

* Category
* Commons

* v
* t
* e

Web frameworks

* Comparison

C++|

* CppCMS
* Wt

CLI|

* ASP.NET
* Core
* AJAX
* Dynamic Data
* MVC
* Razor
* Web Forms
* DNN
* BFC
* MonoRail
* OpenRasta
* Umbraco
* WebSharper

ColdFusion|

* CFWheels
* ColdBox Platform
* ColdSpring
* Fusebox
* Model-Glue

Common Lisp|

* Caveman2
* CL-HTTP
* Weblocks

Haskell|

* Yesod
* Snap

Java|

* AppFuse
* Flexive
* Grails
* GWT
* ICEfaces
* ItsNat
* JavaServer Faces
* JHipster
* Jspx
* JWt
* OpenXava
* Play
* Remote Application Platform
* RIFE
* Seam
* Sling
* Spring
* Stripes
* Struts
* Tapestry
* Vaadin
* Vert.x
* WebWork
* Wicket
* WaveMaker
* ZK

JavaScript|

* Angular/AngularJS
* Backbone.js
* Chaplin.js
* Closure
* Dojo Toolkit
* Ember.js
* Express.js
* Ext JS
* jQuery
* Knockout.js
* Meteor
* MooTools
* Node.js
* OpenUI5
* Prototype
* React
* Rico
* script.aculo.us
* Sencha Touch
* SproutCore
* Svelte
* Vue.js
* Wakanda

Perl|

* Catalyst
* Dancer
* Mason
* Maypole
* Mojolicious
* WebGUI

PHP|

* CakePHP
* CodeIgniter
* Drupal
* Fat-Free
* FuelPHP
* Flow
* Grav
* Gyroscope
* Horde
* Joomla
* Kohana
* Laravel
* Lithium
* Midgard
* MODX
* Nette
* Phalcon
* PHP-Fusion
* Pop PHP
* PRADO
* ProcessWire
* Qcodo
* Silex
* SilverStripe
* Symfony
* TYPO3
* WordPress
* XOOPS
* Yii
* Zend Framework

Python|

* BlueBream
* CherryPy
* Django
* Flask
* Grok
* Nevow
* Pyjs
* Pylons
* Pyramid
* Quixote
* TACTIC
* Tornado
* TurboGears
* web2py
* Webware
* Zope 2
* more...

Ruby|

* Camping
* Merb
* Padrino
* Ruby on Rails
* Sinatra

Scala|

* Lift
* Play
* Scalatra

Smalltalk|

* AIDA/Web
* Seaside

Other languages|

* Vibe.d (D)
* Application Express (PL/SQL)
* Grails (Groovy)
* Kepler (Lua)
* OpenACS (Tcl)
* Phoenix (Elixir)
* SproutCore (JavaScript-Ruby)
* Yaws (Erlang)

* v
* t
* e

Package managers (format)

Compiled

| Windows|

* Allmyapps
* Cygwin
* Microsoft Store
* Npackd
* NSIS
* NuGet
* Chocolatey
* ProGet
* wpkg

|

macOS|

* Mac App Store
* pkgsrc

Linux
Unix-like|

| dpkg|

* APT
* aptitude
* dselect
* Ubuntu Software Center

|

RPM|

* YUM
* DNF
* APT-RPM
* up2date
* urpmi
* ZYpp

tarball|

* slapt-get
* slackpkg
* netpkg
* swaret

Purely functional|

* Nix
* Guix

Other|

* AppImage
* Autopackage
* Conary
* Flatpak
* PackageKit
* pacman
* PBI
* PETget
* PISI
* Portage
* Snappy
* Upkg
* pkgsrc

Solaris • illumos|

* IPS
* Pkgutil
* OpenCSW
* pkgsrc

z/OS|

* SMP/E

Embedded OS|

* ipkg
* opkg

Mobile OS|

* Amazon Appstore
* App Store
* Cydia
* F-Droid
* GetJar
* Google Play
* Microsoft Store
* RPM
* SlideME
* Windows Phone Store

Gaming console|

* DSi Shop
* Nintendo eShop
* PlayStation Store
* Wii Shop Channel
* Xbox Games Store

Multi-platform|

* OpenPKG
* pkgsrc
* Zero Install

Web browsers|

* Chrome Web Store
* Mozilla Add-ons

Uncompiled

| Linux|

* ABS
* apt-build
* Compile
* Portage
* Sorcery
* BitBake
* pkgsrc

|

macOS|

* Fink
* MacPorts
* Homebrew
* pkgsrc

BSD|

* ports collection
* FreeBSD Ports
* pkgsrc

C++|

* Gradle
* vcpkg

Java|

* Maven
* Ivy
* Gradle

Python|

* PyPl
* pip
* easyinstall
* PyPM
* Anaconda
* Enthought Canopy

JavaScript|

* NPM

.NET|

* NuGet

Perl|

* CPAN

Ruby|

* RubyGems

PHP|

* PEAR
* Composer

* List
* Category
* Commons

0.00

(0 votes)

Original source: https://en.wikipedia.org/wiki/PEAR. Read more

|

Retrieved from "https://handwiki.org/wiki/index.php?title=PEAR&oldid=4344520"
*[v]: View this template
*[t]: Discuss this template
*[e]: Edit this template