Skip to content

Instantly share code, notes, and snippets.

@codingJouda
codingJouda / phpver.sh
Last active August 5, 2024 07:55 — forked from sasa-b/phpver
A small script for easier management of multiple version of PHP with Homebrew on macOS
#!/bin/bash
# based on https://sasablagojevic.com/running-multiple-versions-of-php-on-macos-with-homebrew
if [ $# -eq 0 ]
then
echo "No version argument supplied." >&2;
echo "Installed versions:"
ls -la /usr/local/opt/php@*
exit 2;
fi