LoginSignup
0
1

More than 5 years have passed since last update.

composer メモ

Posted at

よく忘れる

バージョン番号指定

指定 対象バージョン
1.2.3 1.2.3.0-stable
>1.2 >1.2.0.0-stable
>=1.2 >=1.2.0.0-dev
>=1.2-stable >=1.2.0.0-stable
<1.3 <1.3.0.0-dev
<=1.3 <=1.3.0.0-stable
1 - 2 >=1.0.0.0-dev <3.0.0.0-dev
~1.3 >=1.3.0.0-dev <2.0.0.0-dev
1.4.* >=1.4.0.0-dev <1.5.0.0-dev

バージョン名のフォーマット

X.Y.Z or vX.Y.Z で、オプションとして -dev,-patch(-p),-alpha(-a),-beta(-b),-RC が認識できる。

  • 1.0.0
  • 1.0.3
  • 1.1.0
  • 0.2.5
  • 1.0.0-dev
  • 1.0.0-alpha3
  • 1.0.0-beta2
  • 1.0.0-RC5
  • v2.0.4-p1

インストールしている特定のパッケージのバージョンを確認

  • composer depends vendor/foo

インストールしているパッケージの一覧を表示

  • composer show

インストールしている特定パッケージの詳細な情報を表示

  • composer show vendor/foo

参考

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1