To install on centos try:
> yum install php-cli php-mailparse
..and then restart apache..
> systemctl restart httpd
PHP - Manual: 安装
2024-12-21
此 » PECL 扩展未与 PHP 捆绑。 安装此 PECL 扩展相关的信息可在手册中标题为 PECL 扩展的安装章节中找到。更多信息如新的发行版本、下载、源文件、 维护人员信息及变更日志等,都在此处: » https://pecl.php.net/package/mailparse.
In order to use these functions you must compile PHP with mailparse support by using the --enable-mailparse configure option.
Windows users will enable php_mailparse.dll inside of php.ini in order to use these functions. 此扩展在 Windows 平台的二进制扩展 (DLL 文件) PECL 可以在 PECL 官方网站上下载。
It is necessary that the mbstring extension is loaded before mailparse.
官方地址:https://www.php.net/manual/en/mailparse.installation.php