Skip to content

Instantly share code, notes, and snippets.

@ksuzushima
Created March 29, 2018 02:12
Show Gist options
  • Save ksuzushima/1a4af3b9d32ba8f66c44228d3ddb4898 to your computer and use it in GitHub Desktop.
Save ksuzushima/1a4af3b9d32ba8f66c44228d3ddb4898 to your computer and use it in GitHub Desktop.
How to brew install Composer.

PHP version

$ php -v
PHP 7.1.7 (cli) (built: Jul 15 2017 18:08:09) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
$ which php
/usr/bin/php

Composer

$ brew install homebrew/php/composer
$ composer
   ______
  / ____/___  ____ ___  ____  ____  ________  _____
 / /   / __ \/ __ `__ \/ __ \/ __ \/ ___/ _ \/ ___/
/ /___/ /_/ / / / / / / /_/ / /_/ (__  )  __/ /
\____/\____/_/ /_/ /_/ .___/\____/____/\___/_/
                    /_/
Composer version 1.6.3 2018-01-31 16:28:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment