Help us understand the problem. What is going on with this article?

PhpStormでcomposerを使う

More than 5 years have passed since last update.

PhpStormのPHP Composer設定

PhpStorm PreferenceのComposerで「Path to composer.phar」にcomposerのパスを設定します。

% which composer
/usr/local/bin/composer

本PCは/usr/local/bin/composerにcomposerをインストールしているので次のようになります。

設定画面

kobito.1408894445.124909.png

composer.jsonの作成

メニューの「Tools - Composer - Init Composer...」でプロジェクトのルートにcomposer.jsonのひな形が作成されます。

kobito.1408894749.341102.png

パッケージの追加

メニューの「Tools - Composer - Add Dependency...」

kobito.1408895042.415228.png

パッケージとバージョンを選んでInstallボタンを押すとcomposer.jsonにパッケージが追加され、かつcomposer updateも実行されてダウンロードが始まります。
PhpStormの多機能っぷりがすごい。

kobito.1408895217.302661.png

pakiln
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
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  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
ユーザーは見つかりませんでした