Question

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 ?

Was it helpful?

Solution

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.

OTHER TIPS

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...

Also, you can install hombrew-alt (Alternate formulae repos for Homebrew), it has a php formula that's works great.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top