Installing PEAR on Mac OS X
An anonymous reader writes "The PHP Extension and Application Repository (PEAR) is an online repository of high-quality, peer-reviewed PHP classes that conform to a rigorous coding standard. In this MacDevCenter article, Jason Perkins shows you how to install, configure and use the PEAR Package Manager on Mac OS X 10.2."
Now, if I had a first-generation iMac and I could get OS X working on it, I could have PEAR on an Orange or Blueberry Apple.
Good judgment comes from experience.
Experience comes from bad judgment.
...(PEAR) is an online repository of high-quality, peer-reviewed PHP classes that conform to a rigorous coding standard.
how come that since years, everybody talks about coding standard and I can't find the word 'documentation' in these standards?
Just a couple of hours ago I tried out the Spreadsheet_Excel_Writer (a port of perl's Spreadsheet::WriteExcel Perl). It does not contain ANY documentation. Yes, some lines are commented and most parameters are described. But you won't find a word telling you how to use it.
It's formatted nice, there are no unchecked parameters, yes, yes. but no docs. bah.
There seem to be two separate efforts to bring robust object oriented apps (classes, really ) to PHP. One of them is PEAR, and it is obviously being done in conjunction with the primary PHP development team. The other efforts is Manuel Lemos' PHPClasses.org site. The PHPClasses site is much more grass-roots and currently has a much wider variety of classes available in it. Hopefully these groups can work together. I don't know Manuel personally, but as someone who has followed his web site for about six months or a year, I'm hoping that somebody at Zend or wherever the financial backing is behind PHP can offer this guy a job and take advantage of the momentum that he has built up. It would probably speed up the rate at which classes were submitted to pear.php.net.
http://tinyurl.com/4ny52
If you've installed a recent version of PHP from source, you should use the --enable-cli flag to configure. This will build the Apache module and a command-line version of PHP, obviating the need to download the (out-of-date) CGI they link to.
PHP may automagically do this anyway, so check first. Besides, it's probably best to have your web-server version of PHP the same as your CGI version.
Tuus crepidae innexilis sunt.