Currently seeking new career opportunities in web development, particularly with Laravel, Hire Me

Upgrade PHP 7.4 with Homebrew

David Carr

Development

PHP 7.4 came out this week, so it's time to upgrade! 

On Mac, Homebrew makes the whole process painless.

First, run an update on Homebrew:

brew update

You will see any tabs available if you've updated recently then its likely you'll only see:

Updated 1 tap (homebrew/core).
==> New Formulae
php@7.3

Next upgrade PHP:

brew upgrade php

This will upgrade PHP to the latest version, which at this moment is PHP 7.4

To verify your PHP version run:

php -v

Then you should see:

PHP 7.4.0 (cli) (built: Nov 29 2019 16:18:44) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.0, Copyright (c), by Zend Technologies

That's all there is to it!

Laravel Modules Your Logo Your Logo Your Logo

Become a sponsor

Help support the blog so that I can continue creating new content!

Sponsor

My Latest Book

Modular Laravel Book - Laravel: The Modular way

Learn how to build modular applications with Laravel Find out more

Subscribe to my newsletter

Subscribe and get my books and product announcements.

Learn Laravel with Laracasts

Faster Laravel Hosting

© 2006 - 2024 DC Blog. All code MIT license. All rights reserved.