DEV Community

Avinash Dalvi
Avinash Dalvi

Posted on

Upgrade PHP 7.1 to 7.2 or 7.3

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)

Collapse
 
leslieeeee profile image
Leslie

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!

Collapse
 
avinashdalvi_ profile image
Avinash Dalvi

Let me give a try on this. Thanks for recommendation

Collapse
 
leslieeeee profile image
Leslie

It's a useful tool.