Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why isn't there any "official" PHP Formula for Homebrew

Homebrew seems to be a really powerful package manager for osx, and the amount of available formulas is really convenient, but I can't understand something : Why isn't there any PHP formula for homebrew ?

I mean, there are "custom formulas" to add to homebrew, but no official one. The weird part is there are a lot of PHP extension available in hombrew, out of the box, such as apc, imagick, xdebug, ffmpeg-php but no PHP. I can't understand. Could someone explain ? Is there a reason ? A licence issue, maybe ?

like image 268
loranger Avatar asked Jan 21 '11 10:01

loranger


2 Answers

I suspect a very real reason (as per my comment) is that Mac OS X has PHP pre-installed (fire up a terminal and type "php --version") and hence there's no need to provide the base PHP package.

Additionally, according to the Homebrew github page:

Remember! We don’t accept formula into mxcl/master that dupes stuff already included with OS X.

This is explained in additional detail on the Formula Cookbook page.

like image 191
John Parker Avatar answered Nov 25 '22 20:11

John Parker


See also: https://github.com/josegonzalez/homebrew-php

This repository contains PHP-related formulae for Homebrew.

(This replaces the PHP formulae that used to live under adamv's homebrew-alt repository.)

The purpose of this repository is to allow PHP developers to quickly retrieve working, up-to-date formulae. The mainline Homebrew repositories are maintained by non-php developers, so testing/maintaining PHP-related brews has fallen by the wayside...

like image 31
Adam Vandenberg Avatar answered Nov 25 '22 20:11

Adam Vandenberg