tafoyaventures/php-dmarc
Composer 安装命令:
composer require tafoyaventures/php-dmarc
包简介
A simple DMARC report parser for PHP.
README 文档
README
php-dmarc is a small PHP class I wrote to parse DMARC aggregate reports and put the data in a MySQL database for easy analysis. The idea is that when recipients start supporting delivery of reports using HTTP, then this can form part of an endpoint that receives and automatically parses the reports.
Improvements/fixes welcome.
Installation
The library is available on Packagist (tafoyaventures/php-dmarc)
and can be installed using Composer. Alternatively you can grab the code directly from GitHub and include the DmarcAggregateParser.php script directly or via a PSR-0 autoloader.
Usage
-
Set up your database.
tables.sqlcontains the SQL needed to set up the tables. -
Use the
Solaris\DmarcAggregateParserclass to parse reports - you need to supply it with database credentials, and then run theparse()function with an array of files to parse. Something like this:$parser = new Solaris\DmarcAggregateParser( 'dbhost', 'dbuser', 'dbpass', 'dbname' ); $parser->parse( array( 'report-file-1.xml', 'report-file-2.xml', 'report-file-3.xml' ) );You can supply either XML files or ZIP files. It is assumed that each ZIP file contains only one report.
-
Knock your self out analysing the data.
The parse() function returns false if it encounters any errors while parsing the data (true otherwise). To see what the errors were, use the get_errors() method, which will return an array of error messages.
Original Developer
Samir Shah samir@rayofsolaris.net is the original developer, but the project has been abandoned.
tafoyaventures/php-dmarc 适用场景与选型建议
tafoyaventures/php-dmarc 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 7 次下载、GitHub Stars 达 2, 最近一次更新时间为 2020 年 03 月 01 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「php」 「dmarc」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 tafoyaventures/php-dmarc 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 tafoyaventures/php-dmarc 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 tafoyaventures/php-dmarc 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A simple DMARC report parser for PHP.
🔏 Stand-alone DKIM class to sign your emails with a 2048 bit private key hashed with SHA-256 algorithm.
Checks for configured mail athentication methods like SPF, DKIM and DMARC
Mail configuration check tool
Alfabank REST API integration
Parse DMARC xml reports
统计信息
- 总下载量: 7
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-03-01