You can use curl to update php version.
curl -s http://php-osx.liip.ch/install.sh | bash -s 7.3
or
curl -s http://php-osx.liip.ch/install.sh | bash -s 7.2
Final Step:
export PATH=/usr/local/php5/bin:$PATH
Reference : https://stackoverflow.com/a/61282898/6285054
Top comments (3)
Have you tried ServBay.dev?
It's a much easier tool for PHP developers, providing a user-friendly experience, especially for beginners. It supports all versions of PHP, MariaDB, PostgreSQL, as well as Redis and Memcached. You can run multiple PHP instances simultaneously and switch between them effortlessly. It also offers easy updates without the need to configure environment variables. This tool has greatly simplified my PHP development and is definitely worth trying!
Let me give a try on this. Thanks for recommendation
It's a useful tool.