php@8.2

PHP 8.2 runtime for executing PHP scripts and web applications

brewmacoslinux
Try with needOr install directly
Source

About

General-purpose scripting language

Commands

phpphp-configphpizepharphar.phar

Examples

Run a PHP script from the command line$ php script.php
Start a built-in development web server$ php -S localhost:8000
Check PHP version and installed extensions$ php -v && php -m