https://github.com/magepsycho/php-version-switcher-macos
PHP Version Switcher MacOS
https://github.com/magepsycho/php-version-switcher-macos
brew homebrew macos php php-switcher php7 php71 php72 php73 php74
Last synced: 4 months ago
JSON representation
PHP Version Switcher MacOS
- Host: GitHub
- URL: https://github.com/magepsycho/php-version-switcher-macos
- Owner: MagePsycho
- Created: 2020-09-07T15:10:16.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-08T08:26:37.000Z (almost 6 years ago)
- Last Synced: 2025-03-13T01:41:21.510Z (over 1 year ago)
- Topics: brew, homebrew, macos, php, php-switcher, php7, php71, php72, php73, php74
- Language: Shell
- Homepage:
- Size: 101 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Bash Script: PHP Version Switcher for MacOS
This utility script helps you to switch the version for your PHP installed via Homebrew on MacOS.
*Currently it only supports PHP versions: `7.1`, `7.2`, `7.3` & `7.4`*
## INSTALL
You can simply download the script file and give the executable permission.
```
curl -0 https://raw.githubusercontent.com/MagePsycho/php-version-switcher-macos/master/src/php-switcher.sh -o php-switcher.sh
chmod +x php-switcher.sh
```
To make it system wide command
```
mv php-switcher.sh ~/bin/php-switcher
```
## USAGE
### To display help
```
php-switcher --help
```
### To switch PHP version
```
php-switcher 7.4
```
## Screenshots
