cronox/php-pst-files-reader

PHP PST files based on `readpst` command

1.1.1 2019-11-28 12:12 UTC

This package is auto-updated.

Last update: 2024-04-14 11:34:34 UTC


README

Install package pst-utils via apt

apt install pst-utils

add this line to your composer.json file:

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

and run

composer update

or run

composer require cronox/php-pst-files-reader

A Simple Example

$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;
}