PHP code example of cronox / php-pst-files-reader
1. Go to this page and download the library: Download cronox/php-pst-files-reader library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
cronox / php-pst-files-reader example snippets
$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;
}
json
"cronox/php-pst-files-reader": "^1.0"