qualityunit/tnef-decoder

TNEF Decoder library extracted from squirell mail plugin to decode winmail.dat file in email attachment

Installs: 1 413 065

Dependents: 0

Suggesters: 0

Security: 0

Stars: 16

Watchers: 13

Forks: 5

Open Issues: 0

pkg:composer/qualityunit/tnef-decoder

1.2.9 2024-01-09 13:30 UTC

This package is auto-updated.

Last update: 2025-09-20 11:34:38 UTC


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();