qualityunit / tnef-decoder
TNEF Decoder library extracted from squirell mail plugin to decode winmail.dat file in email attachment
Installs: 1 133 344
Dependents: 0
Suggesters: 0
Security: 0
Stars: 15
Watchers: 15
Forks: 5
Open Issues: 0
Requires
- php: >=7.0
- ext-mbstring: *
Requires (Dev)
- overtrue/phplint: ^2.0
- phpunit/phpunit: ^9.1
README
Simple PHP library to decode TNEF files (winmail.dat).
It is based on SquirellMail plugin
#Requirements:
- PHP >= 7.0
- PHP-mbstring extension
#Usage Include via composer:
composer require qualityunit/tnef-decoder
Create object to parse attachment file
$attachment = new TNEFAttachment();
Parse string with attachment file and receive array of extracted file objects.
$attachment->decodeTnef($buffer);
$files = $attachment->getFiles();