fwiessner/php-bounce-mail-parser 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

fwiessner/php-bounce-mail-parser

Composer 安装命令:

composer require fwiessner/php-bounce-mail-parser

包简介

Library to analyze bounced emails

README 文档

README

How to install with Composer

To install this library, run the command below and you will get the latest version

composer require fwiessner/php-bounce-mail-parser

How to use it

<?php

// Initialize compser autoloader
require_once __DIR__ . '/vendor/autoload.php';

$parser = new \PhpBounceMailParser\Parser();

// You can specify a directory
$parser->parseDirectory('path/to/directory');

// or a single file (e.g. *.eml)
$parser->parseFile('path/to/file');

// or a single email loaded as string (e.g. via imap_open / imap_fetchbody)
$parser->parseData(explode("\n",$emailstring);

// Specify emails to be ignored when trying to find the recipient as follows
$parser->ignoreEmail('no-reply@wf-ingbau.de');

// Finally get the data output directly in the browser with simple echo
$parser->outputCsv();

// return the Csv as string:
$parser->returnCsv();

// or as file download
$parser->saveCsvAs();

// Here is a complete working example
$parser = new \PhpBounceMailParser\Parser();
$parser->ignoreEmail('foo@bar.com')
       ->parseDirectory(__DIR__ . '/resources')
       ->outputCsv();

?>

统计信息

  • 总下载量: 19
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-11-19

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固