Questions tagged [pear]

PEAR is a repository of PHP software code, designed to offer some functionality not built into PHP core

The PHP Extension and Application Repository, or PEAR, is a repository of PHP software code.

PEAR contains a repository of hundreds of PHP libraries, ranging from HTML form generation to an IMAP protocol implementation. Its use as a package manager (for both PEAR and PECL) has been deprecated (it throws numerous warnings if you run it under PHP 5.4 or later). PEAR libraries, being normal PHP files, can be downloaded directly and included like any other PHP file. If you need a package manager for PEAR, you can use PEAR2 Pyrus, which is written in

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, version-control and documentation.

See http://pear.php.net/ for more information.

1683 questions
150
votes
6 answers

What are differences between PECL and PEAR?

I can see that GD library is for images. But I can't see differences between PECL and PEAR. Both have authentication. What are the main differences between two? Why don't they combine them?
shin
  • 31,901
  • 69
  • 184
  • 271
78
votes
13 answers

Installing PHPUnit via PEAR

I have problems installing PHPUnit 3.4.6 via PEAR 1.9.0. After I discover channel pear.phpunit.de and try to use one of following commands: pear install phpunit/PHPUnit pear install --alldeps phpunit/PHPUnit pear install --onlyreqdeps…
Ondrej Slinták
  • 31,386
  • 20
  • 94
  • 126
72
votes
13 answers

Installing PHP Zip Extension in CentOS

I'm attempting to install the PHP Zip extension in CentOS. My server does not have external internet access, so I downloaded it myself from PECL: http://pecl.php.net/package/zip. I chose 1.10.2, the latest "stable" release, and transferred it to my…
Ubunfu
  • 1,083
  • 2
  • 10
  • 21
61
votes
3 answers

How can i get phpunit to run tests from all files in a folder?

From what I've read, it seems like I should be able to set up a folder, e.g. tests/ , put a few files in it with unit test classes, and then run phpunit on that file and have it find and run the tests. For whatever reason, in my installation (on OS…
jsdalton
  • 6,555
  • 4
  • 40
  • 39
58
votes
10 answers

Installing pecl and pear on OS X 10.11 El Capitan, macOS 10.12 Sierra, macOS 10.13 High Sierra (< 10.13.3)

So it looks like the new 'System Integrity Protection' lockdown of /usr (among other directories) makes pear and pecl a non-starter. Has anyone found a workaround short of disabling it?
axlotl
  • 1,412
  • 1
  • 13
  • 20
54
votes
1 answer

What is the difference between PEAR and Composer?

PEAR is used to install a PHP software package and Composer is used for the same thing. I believe Composer handles dependencies better but is that the only difference? Can anybody explain the difference between these two package managers and tell me…
Sohel Ahmed Mesaniya
  • 3,344
  • 1
  • 23
  • 29
52
votes
7 answers

Setting up PHPUnit on OSX

Though I'm sure others have eventually managed to figure this out, I've been following the various documentation out there and have been having a heck of a rough time of it. http://www.phpunit.de/manual/current/en/installation.html Makes it sound…
Alex C
  • 16,624
  • 18
  • 66
  • 98
51
votes
6 answers

sudo pecl install apc returns error

I run the command: sudo pecl install apc The file gets downloaded, the configuration succeeds, then make is launched and I get the following error. /usr/include/php5/ext/pcre/php_pcre.h:29: fatal error: pcre.h: No such file or directory Is there a…
Nicolas de Fontenay
  • 2,170
  • 5
  • 26
  • 51
50
votes
8 answers

Where do PEAR packages normally get installed?

I am using a Debian squeeze server. I have installed PEAR using aptitude install php-pear. This created a directory /usr/share/php/PEAR. I installed some PEAR packages including Phing. I installed the Phing files using pear install --alldeps…
rlandster
  • 7,294
  • 14
  • 58
  • 96
48
votes
7 answers

Call to undefined method PHP_CodeCoverage_Filter::getInstance()

I've got a fresh copy of PHPUnit installed on my system (Ubuntu 11), but whenever I type phpunit in the console I get the following error: PHP Fatal error: Call to undefined method PHP_CodeCoverage_Filter::getInstance() in /usr/bin/phpunit on line…
Ian Hunter
  • 9,466
  • 12
  • 61
  • 77
47
votes
4 answers

How to Ignore Line Length PHP_CodeSniffer

I have been using PHP_CodeSniffer with jenkins, my build.xml was configured for phpcs as below
dextervip
  • 4,999
  • 16
  • 65
  • 93
44
votes
4 answers

How to uninstall a pear package?

What is the command to uninstall a pear package?
Andrew
  • 227,796
  • 193
  • 515
  • 708
43
votes
5 answers

How to install an older version of PHPUnit through PEAR?

I would like to downgrade my installation of PHPUnit 3.4 to 3.3. I'm just not sure how to do it. How do I install version 3.3 of PHPUnit on Ubuntu using PEAR?
Andrew
  • 227,796
  • 193
  • 515
  • 708
40
votes
8 answers

How do I correctly install PHPUnit with PEAR?

I have had to de- and reinstall a newer version of PHPUnit following these directions. Now when I'm launching this line sudo pear install --alldeps phpunit/PHPUnit I see an error message, that looks like this. Unknown remote channel:…
twigmac
  • 1,772
  • 3
  • 21
  • 38
39
votes
4 answers

How to use PEAR behind proxy?

Initially I used the following with no success; export http_proxy=http://username@password:host:port Worth noting I don't get a connection error directly, instead; [root@pal ~]# sudo pear info PHP_CodeSniffer-1.2.1 No information found for…
Daniel Morris
  • 6,852
  • 8
  • 25
  • 30
1
2 3
99 100