https://github.com/qualityunit/tnefdecoder
TNEF Decoder
https://github.com/qualityunit/tnefdecoder
Last synced: about 1 year ago
JSON representation
TNEF Decoder
- Host: GitHub
- URL: https://github.com/qualityunit/tnefdecoder
- Owner: QualityUnit
- License: gpl-2.0
- Created: 2019-06-25T13:38:05.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2025-01-20T09:48:48.000Z (over 1 year ago)
- Last Synced: 2025-03-31T11:03:42.037Z (about 1 year ago)
- Language: PHP
- Size: 835 KB
- Stars: 16
- Watchers: 14
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TNEFDecoder
Simple PHP library to decode TNEF files (winmail.dat).
It is based on [SquirellMail plugin](https://squirrelmail.org/plugin_view.php?id=62)
#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();
```