{"id":40594160,"url":"https://github.com/avvertix/dmarc-report-parser","last_synced_at":"2026-01-21T03:35:50.821Z","repository":{"id":270700775,"uuid":"909134332","full_name":"avvertix/dmarc-report-parser","owner":"avvertix","description":"Parse DMARC reports","archived":false,"fork":false,"pushed_at":"2026-01-12T15:26:59.000Z","size":51,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-12T21:36:32.440Z","etag":null,"topics":["dmarc","dmarc-parser","dmarc-reports"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/avvertix.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-12-27T20:24:38.000Z","updated_at":"2026-01-12T15:27:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"e06e7c54-306e-432f-a15e-a7774e434843","html_url":"https://github.com/avvertix/dmarc-report-parser","commit_stats":null,"previous_names":["avvertix/dmarc-report-parser"],"tags_count":1,"template":false,"template_full_name":"spatie/package-skeleton-php","purl":"pkg:github/avvertix/dmarc-report-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avvertix%2Fdmarc-report-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avvertix%2Fdmarc-report-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avvertix%2Fdmarc-report-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avvertix%2Fdmarc-report-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/avvertix","download_url":"https://codeload.github.com/avvertix/dmarc-report-parser/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avvertix%2Fdmarc-report-parser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28624556,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T02:47:06.670Z","status":"ssl_error","status_checked_at":"2026-01-21T02:45:44.886Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dmarc","dmarc-parser","dmarc-reports"],"created_at":"2026-01-21T03:35:50.666Z","updated_at":"2026-01-21T03:35:50.812Z","avatar_url":"https://github.com/avvertix.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DMARC Report Parser\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/avvertix/dmarc-report-parser.svg?style=flat-square)](https://packagist.org/packages/avvertix/dmarc-report-parser)\n[![Tests](https://img.shields.io/github/actions/workflow/status/avvertix/dmarc-report-parser/run-tests.yml?branch=main\u0026label=tests\u0026style=flat-square)](https://github.com/avvertix/dmarc-report-parser/actions/workflows/run-tests.yml)\n[![Total Downloads](https://img.shields.io/packagist/dt/avvertix/dmarc-report-parser.svg?style=flat-square)](https://packagist.org/packages/avvertix/dmarc-report-parser)\n\nDMARC Report Parser is designed to simplify the analysis of [DMARC](https://dmarc.org/) (Domain-based Message Authentication, Reporting \u0026 Conformance) reports:\n\n- Parse the XML-based report into fully typed classes\n- Read reports from GZip files without decompressing first (coming soon)\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require avvertix/dmarc-report-parser\n```\n\nRequire PHP 8.3 with `xsl` and `sodium` extensions.\n\n## Usage\n\nIt is possible to parse reports from XML files or strings. The output is fully typed instance of `DmarcReport`.\n\n\n**from file**\n\n```php\n$dmarc = new Avvertix\\DmarcReportParser\\DmarcReportParser();\n\n/**\n * @var Avvertix\\DmarcReportParser\\Data\\DmarcReport\n */\n$report = $dmarc-\u003efromFile('path/to/report.xml');\n\n```\n\n**from string**\n\n```php\n$dmarc = new Avvertix\\DmarcReportParser\\DmarcReportParser();\n\n$xml = \u003c\u003c\u003c'DMARC'\n\u003c?xml version=\"1.0\"?\u003e\n\u003cfeedback xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\u003e\n\u003cversion\u003e1.0\u003c/version\u003e\n\u003c!-- content omitted for brevity --\u003e\n\u003c/feedback\u003e\nDMARC;\n\n/**\n * @var Avvertix\\DmarcReportParser\\Data\\DmarcReport\n */\n$report = $dmarc-\u003efromString($xml);\n```\n\n**DmarcReport class**\n\nThe [`DmarcReport`](./src/Data/DmarcReport.php) class represent the report in a fully typed manner.\n\nA few differences with respect to the spec:\n\n- Report generator metadata are directly accessible from the `DmarcReport` class and not encapsulated in an object\n- Records are exposed using the `records` (array) property\n- In AuthResult both dkim and spf properties are represented as arrays\n- In general when the spec report an element to be available multiple times we represent it as an array property\n\n\n## Testing\n\nDMARC Report Parser is covered in unit test. The [PestPHP](https://pestphp.com/) framework is used. To run the whole test suite execute the `test` script. \n\n```bash\ncomposer test\n```\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.\n\n## Security Vulnerabilities\n\nPlease review [our security policy](../../security/policy) on how to report security vulnerabilities.\n\n## Credits\n\n- [Alessio Vertemati](https://github.com/avvertix)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favvertix%2Fdmarc-report-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Favvertix%2Fdmarc-report-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favvertix%2Fdmarc-report-parser/lists"}