composerで特定のバージョンをインストールする
composer require cat/mofu:X.X.X
バージョン指定の記号の意味
~
~1.2 is equivalent to >=1.2 <2.0.0, while ~1.2.3 is equivalent to >=1.2.3 <1.3.0
^
The ^ operator behaves very similarly but it sticks closer to semantic versioning, and will always allow non-breaking updates. For example ^1.2.3 is equivalent to >=1.2.3 <2.0.0 as none of the releases until 2.0 should break backwards compatibility.
~より緩い
? composerの(^|~)の意味