cronox/php-pst-files-reader

基于 `readpst` 命令的 PHP PST 文件

1.1.1 2019-11-28 12:12 UTC

This package is auto-updated.

Last update: 2024-09-14 12:39:31 UTC


README

通过 apt 安装 pst-utils

apt install pst-utils

将以下行添加到您的 composer.json 文件中

"cronox/php-pst-files-reader": "^1.0"

然后运行

composer update

或者运行

composer require cronox/php-pst-files-reader

简单示例

$sourcePstFilePath = "/my-psts/Outlook.pst";
$destinationPstDirPath = "/my-psts/unpack-here";

try {
    $parsedEmails = $PstReader
         ->setSourcePstFilePath($sourcePstFilePath)
         ->setDestinationPstDirPath($destinationPstDirPath)
         ->setReplaceUnpacked(true)
         ->unpackPstFile()
         ->getParsedAllEmails();
} catch (\Exception $exception) {
    throw $exception;
}