🌐
Homebrew
formulae.brew.sh › formula › php@8.1
php@8.1 — Homebrew Formulae
brew install php@8.1 · General-purpose scripting language · https://www.php.net/ License: PHP-3.01 · Development: Pull requests · Formula JSON API: /api/formula/php@8.1.json · Formula code: php@8.1.rb on GitHub · Bottle (binary package) ...
🌐
Stitcher
stitcher.io › blog › php-81-upgrade-mac
Upgrade to PHP 8.1 with Homebrew on Mac | stitcher.io
The version should show 8.1.x. Join over 14k subscribers on my mailing list: I write about PHP, programming, and keep you up to date about what's happening on this blog. You can subscribe by sending an email to brendt@stitcher.io. If you're using Laravel Valet, you should do the following steps to upgrade it: ... PHP extensions are installed using pecl.
Discussions

macos - How to install specific older PHP 8.1.* version on Mac using Brew? - Stack Overflow
The latest version of PHP 8.1 is 8.1.17 right now, but for development reasons I need an older version. Specifically 8.1.6 to support development on our Ubuntu running servers, as well as to preven... More on stackoverflow.com
🌐 stackoverflow.com
macos - how to force us the php 8.1 installed using home brew? - Stack Overflow
I Have installed MAMP in my mac, Using the php version of 7.4. command which php returns - /Applications/MAMP/bin/php/php7.4.21/bin/php I have installed php 8.1 using brew. I comment the ~/.bash_p... More on stackoverflow.com
🌐 stackoverflow.com
how to get homebrew installed php 8.1.10 to work on macos monterey
Sorry, no mac so can't really help there, but... I'd suggest using a containerized environment (docker) to better match where you'd be deploying to (assuming Linux). There are a ton of build-a-docker-compose websites for PHP apps out there which take care of the majority of heavy lifting for you. Note that there are still performance issues with docker for mac and the OSX filesystem so applications with a lot of file access (like PHP apps) will be relatively slow unless you're using bleeding edge everything where I've heard the issues are kinda fixed. More on reddit.com
🌐 r/PHPhelp
1
3
September 25, 2022
Installing php extensions with homebrew
Try pecl https://grrr.tech/posts/installing-homebrew-php-extensions-with-pecl/ More on reddit.com
🌐 r/PHPhelp
5
3
December 7, 2022
🌐
TecAdmin
tecadmin.net › install-php-macos
How to Install PHP (8.3, 8.2, 7.4 or 5.6) on MacOS
April 26, 2025 - Installing PHP on macOS. Step by step tutorial to install PHP 8.3, 8.2, 8.1, 8.0, 7.4, 7.3, 7.2, 7.1 or 5.6 on MacOS systems. Homebrew install PHP
🌐
Medium
medium.com › @rasifsahl › how-to-install-php-on-a-mac-and-how-to-switch-between-php-versions-in-mac-ec6a96823ca7
How to install PHP on a mac and how to switch between PHP versions in MAC | by Rasif Sahl | Medium
June 21, 2022 - To install a different PHP version just replace 8.1 with the required version. ... Once the installation is finished, restart the shell and check the active PHP version.
🌐
Scritpcase
scriptcase.net › docs › en_us › v9 › manual › 02-scriptcase-installation › 07-mac_php
Installing PHP 8.2 - macOS - Scriptcase Low-Code documentation
Scriptcase Automatic Installer is compatible with the following macOS versions · You can install the Scriptcase with PHP 8.1: See how to install with PHP 8.1
🌐
Pi My Life Up
pimylifeup.com › home › how to install php on macos
How to Install PHP on macOS - Pi My Life Up
October 31, 2022 - Gus-MBP:~ gus$ php --version PHP ... differs from the version we use in this tutorial. For an Apple silicon Mac, change /usr/local to /opt/homebrew....
Find elsewhere
🌐
Medium
gagarine.medium.com › install-php-7-3-cli-on-macos-mojave-using-macports-cbeb3a1b8d22
Install PHP 8.1 CLI on MacOS using MacPorts | by Simon | Medium
May 5, 2022 - $ sudo port install php81-cgi php81-gd php81-curl php81-intl php81-iconv php81-gettext php81-mbstring php81-imap php81-mcrypt php81-xmlrpc php81-mysql php81-openssl php81-sockets php81-zip php81-tidy php81-opcache php81-xsl php81-sqlite · If ...
🌐
DEV Community
dev.to › ibrarturi › installing-php-80-on-macos-overcoming-disabled-versions-1hio
Installing PHP 8.0 on MacOS: Overcoming Disabled Versions - DEV Community
February 6, 2024 - For instance, if you're a Valet user, you might face issues with commands like valet install php@8.0 or valet use php@8.0, and via brew, a message might appear, indicating:
🌐
GitHub
github.com › shivammathur › homebrew-php
GitHub - shivammathur/homebrew-php: Homebrew tap for PHP 5.6 to 8.6. PHP 8.6 is built nightly :beer: · GitHub
Make sure homebrew has correct permissions. sudo chown -R "$(id -un)":"$(id -gn)" $(brew --prefix) If PHP is not working after a macOS update. Reinstall PHP along with its dependencies. For example to reinstall PHP 8...
Starred by 2.9K users
Forked by 185 users
Languages   Ruby 98.6% | PHP 1.4%
🌐
Yoan Arnaudov Blog
yarnaudov.com › how-to-install-php83-on-macos.html
How to install PHP 8.3 on MacOS - Yoan Arnaudov Blog
September 25, 2023 - You can use your well-known Mac ... brew, you can install it with this command: $ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"...
🌐
YouTube
youtube.com › watch
Mise à jour PHP 8.1 - Guide Homebrew sous macOS ! - YouTube
Nous expliquons comment mettre à jour PHP 8.1 sous macOS via #Homebrew puisque cette version est désormais disponible. Suivez la marche à suivre pour réalise...
Published   November 30, 2021
🌐
Hashnode
billionsjoel.hashnode.dev › how-to-install-php-8-on-a-mac-with-homebrew
How to Install PHP 8 on a Mac with Homebrew
February 20, 2023 - By default, PHP 8.1 uses the built-in PHP server, but you can also use other web servers such as Apache or Nginx. To configure PHP with a web server, you’ll need to edit the server’s configuration files. The exact steps depend on the web server you’re using and the specific configuration you need. ... In this article, we’ve shown you how to install PHP 8 on a Mac using Homebrew.
🌐
Medium
medium.com › @ahmedazier › the-ultimate-guide-to-installing-php-on-macbook-pro-m1-21ff9173eb3d
The Ultimate Guide to Installing PHP on MacBook Pro M1 | by Ahmed Azier | Medium
July 8, 2023 - In this comprehensive guide, we’ll walk you through the step-by-step process of installing PHP on your MacBook Pro M1, ensuring you have everything you need to kickstart your PHP development journey.
🌐
PHP.Watch
php.watch › articles › php-8.3-install-upgrade-on-macos-homebrew
How to Install/Upgrade PHP 8.3 on MacOS with Homebrew • PHP.Watch
November 22, 2023 - # Add the PHP and PHP Extension taps brew tap shivammathur/php brew tap shivammathur/extensions # Install PHP 8.3 brew install shivammathur/php/php@8.3 # Link PHP 8.3 CLI executable as `php` brew link --overwrite --force shivammathur/php/php@8.3 # Test installation php -v · Make sure to have Homebrew installed. This was tested on macOS macOS Monterey, Ventura, and Sonoma.
🌐
Reddit
reddit.com › r/phphelp › how to get homebrew installed php 8.1.10 to work on macos monterey
r/PHPhelp on Reddit: how to get homebrew installed php 8.1.10 to work on macos monterey
September 25, 2022 -

hello. I installed php with homebrew and I configured it following these instructions:

```

LoadModule php_module /usr/local/opt/php/lib/httpd/modules/libphp.so

<FilesMatch \.php$>

SetHandler application/x-httpd-php

</FilesMatch>

Finally, check DirectoryIndex includes index.php

DirectoryIndex index.php index.html

The php.ini and php-fpm.ini file can be found in:

/usr/local/etc/php/8.1/

```

and restarted php and apache2 but am not seeing php files being processed correctly. That is, I'm seeing in plaintext `<?php phpinfo(); ?>` when accessing localhost/index.php.

🌐
Microsoft Learn
learn.microsoft.com › en-us › sql › connect › php › installation-tutorial-linux-mac
Linux and macOS Installation for the Drivers for PHP - PHP drivers for SQL Server | Microsoft Learn
March 27, 2026 - If PHP isn't in your path or it isn't the correct version, run the following commands: ... Install the ODBC driver for macOS by following the instructions on the Install the Microsoft ODBC driver for SQL Server (macOS).
🌐
Homebrew
formulae.brew.sh › formula › php@8.2
Homebrew Formulae: php@8.2
brew install php@8.2 · General-purpose scripting language · https://www.php.net/ License: PHP-3.01 AND Zend-2.0 AND BSL-1.0 AND MIT AND Apache-1.0 AND bcrypt-Solar-Designer AND BSD-2-Clause-Darwin AND BSD-2-Clause AND BSD-3-Clause AND ...