Instantly share code, notes, and snippets.

Embed
What would you like to do?
Setup PHP Composer using Brew
@mysticaltech

This comment has been minimized.

mysticaltech commented Apr 5, 2017

Thanks! For others wanting to install php 7, just replace the first line by:
brew install php71

@JohnnyWalkerDesign

This comment has been minimized.

JohnnyWalkerDesign commented Apr 13, 2017

Why would anyone not want to install PHP 7 if they were installing it for the first time? The speed increase alone makes it preferable.

@MattWohler

This comment has been minimized.

MattWohler commented May 17, 2017

@JohnnyWalkerDesign .. you may be on a work machine working on a legacy app that is running on an older version.

@JoaoGFarias

This comment has been minimized.

JoaoGFarias commented May 23, 2017

Always good use Bash's && command.

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" && brew update && brew tap homebrew/dupes && brew tap homebrew/php && brew install php71 && brew install composer && composer -V

@lacivert

This comment has been minimized.

lacivert commented Aug 29, 2017

I see this warning, is it ok?

Warning: homebrew/dupes was deprecated. This tap is now empty as all its formulae were migrated.

@jonjaques

This comment has been minimized.

jonjaques commented Aug 31, 2017

Works fine for me!

@LucWollants

This comment has been minimized.

LucWollants commented Oct 2, 2017

@lacivert they are now managed inside homebrew-core

@mahmoudissmail

This comment has been minimized.

mahmoudissmail commented Oct 12, 2017

@JoaoGFarias Works fine for me!

@M-Doja

This comment has been minimized.

M-Doja commented Nov 21, 2017

just what I was looking for. Thanks

@nic9075

This comment has been minimized.

nic9075 commented Jan 14, 2018

How exactly is this done with a Windows 10 PC?

@ckieffer

This comment has been minimized.

ckieffer commented Jan 25, 2018

The homebrew/dupes tap was deprecated and its formulae migrated.

@nic9075 see http://kizu514.com/blog/install-php7-and-composer-on-windows-10/

@fbiville

This comment has been minimized.

fbiville commented Sep 12, 2018

Now it's simple as brew install php composer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment