/ya-phpenv

yet another phpenv

Primary LanguageShellMIT LicenseMIT

yet another phpenv

CHH/phpenvはrbenvを一部置換するしくみ。一部なのでrbenvと干渉する。

こちらは全部置換してみた。

使い方

curl -fsSL https://raw.githubusercontent.com/pen/ya-phpenv/main/install-ya-phpenv.sh | sh

.zshrc、.bashrc に追記して再起動する(オリジナルと同じ)

export PATH=$HOME/.phpenv/bin:$PATH
eval "$(phpenv init -)" 

おまけ

Macの人は

curl -fsSL https://raw.githubusercontent.com/pen/ya-phpenv/main/ya-phpenv-install-mac.sh | sh -s 8.0.7

などであまり失敗せずPHPをインストールできるだろう。

システムに足りないものがあるときは指摘してくるので、主にbrewで入れてリトライを。

参考