{"id":20896589,"url":"https://github.com/luizeof/php-dmarc-parser","last_synced_at":"2026-03-15T09:04:58.782Z","repository":{"id":141279558,"uuid":"289736167","full_name":"luizeof/php-dmarc-parser","owner":"luizeof","description":"PHP library for parsing DMARC aggregate report files","archived":false,"fork":false,"pushed_at":"2015-08-17T21:39:22.000Z","size":124,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-09T19:03:52.814Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":false,"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/luizeof.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-23T17:38:52.000Z","updated_at":"2021-03-25T20:31:39.000Z","dependencies_parsed_at":"2023-03-13T04:11:32.994Z","dependency_job_id":null,"html_url":"https://github.com/luizeof/php-dmarc-parser","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/luizeof/php-dmarc-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luizeof%2Fphp-dmarc-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luizeof%2Fphp-dmarc-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luizeof%2Fphp-dmarc-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luizeof%2Fphp-dmarc-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luizeof","download_url":"https://codeload.github.com/luizeof/php-dmarc-parser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luizeof%2Fphp-dmarc-parser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28025503,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-25T02:00:05.988Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-18T10:36:06.186Z","updated_at":"2025-12-25T09:18:42.788Z","avatar_url":"https://github.com/luizeof.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Teon PHP DMARC Report Parser\n\nPHP library for parsing DMARC aggregate report files into ordinary PHP arrays.\nIf it is supplied a compressed report, it uncompresses it automatically.\n\n\n\n  * [Teon PHP DMARC Report Parser](#teon-php-dmarc-report-parser)\n    * [Basic usage](basic-usage)\n    * [Sample output](#sample-output)\n    * [License](#license)\n\n\n\n## Basic usage\n\n``php\n// Parse file like this...\n$myReportData = \\Teon\\Dmarc\\Parser\\AggregateReportParser::parseFile($myReportFilePath);\n\n// ...or parse XML content directly, like this:\n$myReportData = \\Teon\\Dmarc\\Parser\\AggregateReportParser::parseXmlContent($myReportXmlContent);\n```\n\n\n\n## Sample output\n\nOutput of ```print_r($myReportData)```\n\n```\nstdClass Object\n(\n    [version] =\u003e 1.0\n    [report_metadata] =\u003e stdClass Object\n        (\n            [org_name] =\u003e teon.si\n            [email] =\u003e MAILER-DAEMON@teon.si\n            [extra_contact_info] =\u003e stdClass Object\n                (\n                )\n\n            [report_id] =\u003e sth@teon.si\n            [date_range] =\u003e stdClass Object\n                (\n                    [begin] =\u003e 1439337600\n                    [end] =\u003e 1439423999\n                )\n\n        )\n\n    [policy_published] =\u003e stdClass Object\n        (\n            [domain] =\u003e a2o.si\n            [adkim] =\u003e r\n            [aspf] =\u003e r\n            [p] =\u003e none\n            [sp] =\u003e none\n            [pct] =\u003e 100\n        )\n\n    [records] =\u003e Array\n        (\n            [0] =\u003e stdClass Object\n                (\n                    [row] =\u003e stdClass Object\n                        (\n                            [source_ip] =\u003e 1.1.1.1\n                            [count] =\u003e 1\n                            [policy_evaluated] =\u003e stdClass Object\n                                (\n                                    [disposition] =\u003e none\n                                    [dkim] =\u003e fail\n                                    [spf] =\u003e fail\n                                )\n\n                        )\n\n                    [identifiers] =\u003e stdClass Object\n                        (\n                            [header_from] =\u003e a2o.si\n                            [envelope_from] =\u003e forward.otherdomain.tld\n                        )\n\n                    [auth_results] =\u003e stdClass Object\n                        (\n                            [dkim] =\u003e stdClass Object\n                                (\n                                    [domain] =\u003e a2o.si\n                                    [selector] =\u003e 20150717\n                                    [result] =\u003e permerror\n                                )\n\n                            [spf] =\u003e stdClass Object\n                                (\n                                    [domain] =\u003e forward.otherdomain.tld\n                                    [scope] =\u003e mfrom\n                                    [result] =\u003e pass\n                                )\n\n                        )\n\n                )\n\n            [1] =\u003e stdClass Object\n                (\n                    [row] =\u003e stdClass Object\n                        (\n                            [source_ip] =\u003e 2.2.2.2\n                            [count] =\u003e 1\n                            [policy_evaluated] =\u003e stdClass Object\n                                (\n                                    [disposition] =\u003e none\n                                    [dkim] =\u003e fail\n                                    [spf] =\u003e fail\n                                )\n\n                        )\n\n                    [identifiers] =\u003e stdClass Object\n                        (\n                            [header_from] =\u003e a2o.si\n                            [envelope_from] =\u003e forward.otherdomain.tld\n                        )\n\n                    [auth_results] =\u003e stdClass Object\n                        (\n                            [dkim] =\u003e stdClass Object\n                                (\n                                    [domain] =\u003e a2o.si\n                                    [selector] =\u003e 20150717\n                                    [result] =\u003e permerror\n                                )\n\n                            [spf] =\u003e stdClass Object\n                                (\n                                    [domain] =\u003e forward.otherdomain.tld\n                                    [scope] =\u003e mfrom\n                                    [result] =\u003e pass\n                                )\n\n                        )\n\n                )\n\n        )\n\n)\n```\n\n\n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2015 Teon d.o.o.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluizeof%2Fphp-dmarc-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluizeof%2Fphp-dmarc-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluizeof%2Fphp-dmarc-parser/lists"}