Menu

📰
0

Reddit - Please wait for verification

PHP: The latest news in the PHP world·/u/BackgroundCompany721·2 days ago
#xiqUrzrB
Reading 0:00
15s threshold

Last week, I posted here about a minimal TUI/GUI tool I built (phpvm) to make switching PHP versions on Linux easier. The feedback was great, but one comment by u/rycegh completely changed the direction of the project. A fundamental flaw: relying on update-alternatives to change the global PHP binary is a bad pattern. It means you cannot work on two different projects on different versions in parallel, and switching global PHP knocks over unrelated background CLI tools (like global time trackers). Suggested pivoting was to manage isolated local environments instead. That feedback inspired me to rewrite the architecture from scratch for the 2.5 line. The v2.5.1 is live with fully isolated, per-shell version switching. How the New Architecture Works Instead of touching /usr/bin/php globally, phpvm now functions like nvm or rbenv: Shell Hook: The installer adds a shell hook (for bash, zsh, or fish) that prepends a shim directory to your PATH.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More