rhukster / sphp.sh

Shell script for switching between Brew-installed PHP versions
MIT License
49 stars 12 forks source link

Add PHP 8.3 to supported versions #9

Open simube opened 1 year ago

simube commented 1 year ago

As PHP 8.3 is now in development and available in brew, it would be nice to have it in this script too :)

sononaco commented 2 months ago

First, install PHP 8.3 via HomeBrew.

Then, simply change lines 14 and 15:

From:

brew_array=("5.6","7.0","7.1","7.2","7.3","7.4","8.0","8.1","8.2")
php_array=("php@5.6" "php@7.0" "php@7.1" "php@7.2" "php@7.3" "php@7.4" "php@8.0" "php@8.1" "php@8.2")

To:

brew_array=("5.6","7.0","7.1","7.2","7.3","7.4","8.0","8.1","8.2","8.3")
php_array=("php@5.6" "php@7.0" "php@7.1" "php@7.2" "php@7.3" "php@7.4" "php@8.0" "php@8.1" "php@8.2" "php@8.3")

Now it will work with 8.3.