1 *************************
2 PEAR - The PEAR Installer
3 *************************
4 .. image:: https://travis-ci.org/pear/pear-core.svg?branch=stable
5 :target: https://travis-ci.org/pear/pear-core
7 =========================================
8 What is the PEAR Installer? What is PEAR?
9 =========================================
10 PEAR is the PHP Extension and Application Repository, found at
13 The **PEAR Installer** is this software, which contains executable
14 files and PHP code that is used to **download and install** PEAR code
17 PEAR contains useful **software libraries and applications** such as
18 MDB2 (database abstraction), HTML_QuickForm (HTML forms management),
19 PhpDocumentor (auto-documentation generator), DB_DataObject
20 (Data Access Abstraction), and many hundreds more.
21 Browse all available packages at http://pear.php.net, the list is
22 constantly growing and updating to reflect improvements in the PHP language.
25 Do not run PEAR without installing it - if you downloaded this
26 tarball manually, you MUST install it. Read the instructions in INSTALL
33 Documentation for PEAR can be found at http://pear.php.net/manual/.
34 Installation documentation can be found in the INSTALL file included
41 Run the tests without installation as follows::
43 $ ./scripts/pear.sh run-tests -r tests
45 You should have the ``Text_Diff`` package installed to get nicer error output.
47 To run the tests with another PHP version, modify ``php_bin`` and set the
48 ``PHP_PEAR_PHP_BIN`` environment variable::
50 $ pear config-set php_bin /usr/local/bin/php7
51 $ PHP_PEAR_PHP_BIN=/usr/local/bin/php7 ./scripts/pear.sh run-tests -r tests
53 Happy PHPing, we hope PEAR will be a great tool for your development work!
64 Create a PEAR package as well as phars for pear-less installation::
67 $ pear package package2.xml
72 $ pear download -Z Archive_Tar Console_Getopt Structures_Graph XML_Util
74 $ for i in ../*.tar; do tar xvf $i; done
77 $ php make-gopear-phar.php
78 $ php make-installpear-nozlib-phar.php
80 (Or simply run ``build-release.sh``).
82 ``go-pear.phar`` is contains the PEAR installer installer that asks questions
84 It is available from http://pear.php.net/go-pear.phar.
86 ``install-pear-nozlib.phar`` installs PEAR automatically without asking
88 It is shipped with PHP itself.