8
Help us understand the problem. What are the problem?

More than 1 year has passed since last update.

posted at

updated at

Organization

macOSにcomposerをインストールする

ダウンロードします。

$ curl -sS https://getcomposer.org/installer | php

実行したディレクトリ直下にcomposer.pharという実行ファイルが生成されます。
もちろんこの状態で実行もできます。

$ php composer.phar --version

Composer version 1.7.3 2018-11-01 10:05:06

composerで実行できるようにする為に、実行ファイルを/usr/local/bin直下に移動します。

$ mv composer.phar /usr/local/bin/composer

挙動を確認します。

$ which composer

/usr/local/bin/composer
$ composer --version

Composer version 1.7.3 2018-11-01 10:05:06

終わり。

環境:
macOS High Sierra
Version 10.13.6

参考:
https://getcomposer.org/doc/00-intro.md

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Sign upLogin
8
Help us understand the problem. What are the problem?