See the Pen Untitled by John Doe (@04) on CodePen.
なぜエックスサーバーはComposer 2が使えないのだ😠
Composer 2をインストール
alias php=php8.3
curl -s https://getcomposer.org/installer | php
alias composer='php composer.phar'
aliasを使わない場合
# ~/.bash_profileにあるPATH=$PATH:$HOME/binでは優先順位の関係でphp8.3が反映されない
echo -e '\nPATH=$HOME/bin:$PATH' >> ~/.bashrc
source ~/.bashrc
mkdir -p ~/bin
ln -s /usr/bin/php8.3 ~/bin/php
curl -s https://getcomposer.org/installer | php
mv composer.phar ~/bin/composer
hash -r