macOS13 安装 brew install php 遇到brew install --build-from-source apr问题

1. 问题描述?

macOS从12更新到13之后,php命令失效,提示

zsh: command not found: php

然后brew卸载原有的再重装就不成功了(7.4/8.0都不行)

~  $ php -v
zsh: command not found: php
~  $ brew install php                                                                          127 ↵
Warning: You are using macOS 13.
We do not provide support for this pre-release version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channels. You are responsible for resolving
any issues you experience while you are running this
pre-release version.

Error: apr: no bottle available!
You can try to install from source with:
  brew install --build-from-source apr
Please note building from source is unsupported. You will encounter build
failures with some formulae. If you experience any issues please create pull
requests instead of asking for help on Homebrew's GitHub, Twitter or any other
official channels.

根据提示尝试解决,失败:

~  $ brew install --build-from-source apr                                                        1 ↵
Warning: You are using macOS 13.
We do not provide support for this pre-release version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channels. You are responsible for resolving
any issues you experience while you are running this
pre-release version.

==> Downloading https://raw.githubusercontent.com/Homebrew/formula-patches/7e2246542543bbd3111a4ec29f
curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to raw.githubusercontent.com:443

Error: apr: Failed to download resource "apr--patch"
Download failed: https://raw.githubusercontent.com/Homebrew/formula-patches/7e2246542543bbd3111a4ec29f801e6e4d538f88/apr/r1871981-macos11.patch

2. 期望结果(彻底解决)?

寻求解决办法,如何处理才能安装?

3. 期望结果(暂时解决)?

因为几天了都没解决,导致无法使用php artisan命令,对日常工作、学习已造成麻烦,暂时退而求其次:
有没有巧妙的方法可以解决下?起码让我能使用php artisan命令。

《L05 电商实战》
从零开发一个电商项目,功能包括电商后台、商品 & SKU 管理、购物车、订单管理、支付宝支付、微信支付、订单退款流程、优惠券等
《L02 从零构建论坛系统》
以构建论坛项目 LaraBBS 为线索,展开对 Laravel 框架的全面学习。应用程序架构思路贴近 Laravel 框架的设计哲学。
讨论数量: 0
(= ̄ω ̄=)··· 暂无内容!

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!