Script to install PHP 7.3, 7.4 and 8.0
This script was written before Replit changed to using Nix.
With the new Nix environment you can enable PHP 8.0 like this:
- Click the 3 dots in the Files browser.
- Click "Show config files"
- Open the file called "replit.nix"
- Change "pkgs.php74" to "pkgs.php80"
- Restart the reply
If you still want to try and use the script then you can simply run in in bash by typing: ./php-download 8.0
But unfortunately, I don't think it works anymore under the Nix environment.