PHP Extension and Application Repository
PHP Extension and Application Repository ( PEAR ) is a library (often English. Library ) of modules and extensions for the scripting language PHP . Every developer can sell his own modules via PEAR, provided he puts them under one of the five approved open source licenses. PEAR was launched in 1999 by Stig S. Bakken, and since August 2003 the project has been the patron of the PEAR Group .
application
The PEAR library offers scripts and reference implementations that offer standard solutions for areas of application in the development of PHP applications. Developers can find a contact point here to look for free implementations that are successfully in use. In terms of PHP, PEAR is comparable to PyPi for Python or the CPAN project for Perl .
The program modules and extensions shorten the development process of PHP applications considerably, as they relieve the programmer of many standard tasks. This also creates a higher level of security during application development, since the developer uses quality-assured standard components.
PEAR follows the principle of the CPAN model mentioned above, which is known from Perl: There are basic objects and packages that can be reused in the libraries and avoid redundancies in software development.
The individual in PEAR contained projects (in the context of PEAR "packages", Eng. Packages ) are individuals or small groups created developer according to uniform standards, developed, tested and quality assured.
PEAR contains, among other modules for authentication of users for caching , database access , encryption , configuration , HTML , Web Services , XML-RPC and XML .
All projects are available as open source and can be installed very easily on your own web server using the PEAR installer (which is supplied with current PHP versions since 4.3.0) . PEAR offers installation mechanisms that can manage packages (add, renew, remove) via the command line . In this way, dependencies in the packages used can be controlled and uniform system architectures are made possible.
A separate installation procedure for the installer is available for older PHP versions.
At the PHP: Reader's Choice 2008 , PEAR and the Zend Framework took first place in the Best PHP Framework category .
PEAR2 Pyrus
With Pyrus an attempt was made to design and improve PEAR for PHP from version 5.3 from scratch. Pyrus can be used to install packages from PEAR channels. The last version of Pyrus was released in March 2011, but further development has apparently been discontinued due to the popularity of Composer.
PEAR and Composer
With Composer there is an alternative to managing the package dependencies of a PHP project. Composer also supports the installation of PEAR packages. There are voices in the PHP community who recommend not releasing any further PEAR packages in favor of Composer.
PECL
The PHP Extension Community Library (PECL, pronunciation like the English pickle ) is a former part of PEAR, which only offers C extensions. It was spun off from PEAR in October 2003 and is now being continued as an independent project.
The PECL packages are highly system-dependent because they are based on C. For example, DLLs are used for Windows and .so binaries for Linux .
literature
- Carsten Möhrke: PHP PEAR - application and development. Galileo Press, June 2005, ISBN 3-89842-580-0
- Lectures on PEAR (introduction, news about PEAR, ...) in German and English
Web links
swell
- ↑ permitted licenses
- ↑ installation script "go-pear.php"
- ↑ PHP: Reader's Choice 2008 , as of November 25, 2008
- ↑ https://pear2.php.net/PEAR2_Pyrus
- ↑ https://stackoverflow.com/questions/34199824/what-is-the-difference-between-pear-and-composer
- ↑ https://getcomposer.org/doc/05-repositories.md#pear
- ↑ http://fabien.potencier.org/the-rise-of-composer-and-the-fall-of-pear.html