Skip to content

Instantly share code, notes, and snippets.

@belozerskiy
Forked from tomysmile/mac-php-composer-setup.md
Last active February 21, 2017 11:33
Show Gist options
  • Save belozerskiy/131cd29436c4a5f0b3c209808396f876 to your computer and use it in GitHub Desktop.
Save belozerskiy/131cd29436c4a5f0b3c209808396f876 to your computer and use it in GitHub Desktop.
Setup PHP Composer using Brew

#Установка php5.6 и composer на Mac

  1. Нам понадобиться пакетный менеджер homebrew - https://brew.sh
  1. Затем выполняем данные команды
  • brew update
  • brew tap homebrew/dupes
  • brew tap homebrew/php
  • brew install php56
  • brew install composer

для проверки запустить:

$ composer -V

Composer version 1.1.2 2016-05-31 19:48:11
$ php -v

PHP 5.6.29 (cli) (built: Dec  9 2016 07:03:56) 
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment