PHPackages                             phpmailer/dkimvalidator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. phpmailer/dkimvalidator

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

phpmailer/dkimvalidator
=======================

A DKIM signature validator in PHP.

v0.3.1(8mo ago)23757.1k↓51.8%15[7 issues](https://github.com/PHPMailer/DKIMValidator/issues)[3 PRs](https://github.com/PHPMailer/DKIMValidator/pulls)4MITPHPPHP &gt;=7.2.0

Since Aug 13Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/PHPMailer/DKIMValidator)[ Packagist](https://packagist.org/packages/phpmailer/dkimvalidator)[ RSS](/packages/phpmailer-dkimvalidator/feed)WikiDiscussions main Synced 3d ago

READMEChangelog (2)Dependencies (4)Versions (9)Used By (4)

PHP DKIM Validator
==================

[](#php-dkim-validator)

A straightforward validation class for checking DKIM signatures and header settings. Requires PHP 7.2 or later.

Looking to *send* DKIM-signed email? Check out [PHPMailer](https://github.com/PHPMailer/PHPMailer)!

Installation
------------

[](#installation)

```
composer require phpmailer/dkimvalidator

```

Usage
-----

[](#usage)

```
use PHPMailer\DKIMValidator\Validator;
use PHPMailer\DKIMValidator\DKIMException;
require 'vendor/autoload.php';
//Put a whole raw email message in here
//Load the message directly from disk -
//don't copy & paste it as that will likely affect line breaks & charsets
$message  = file_get_contents('message.eml');
$dkimValidator = new Validator($message);
try {
    if ($dkimValidator->validateBoolean()) {
        echo "Cool, it's valid";
    } else {
        echo 'Uh oh, dodgy email!';
    }
} catch (DKIMException $e) {
    echo $e->getMessage();
}
```

Changelog
=========

[](#changelog)

- Original package [angrychimp/php-dkim](https://github.com/angrychimp/php-dkim);
- Forked by [teon/dkimvalidator](https://github.com/teonsystems/php-dkim).
- Forked into [phpmailer/dkimvalidator](https://github.com/PHPMailer/DKIMValidator) by Marcus Bointon (Synchro) in October 2019:
    - Restructuring
    - Cleanup for PSR-12 and PHP 7.2
    - Various bug fixes and new features.

###  Health Score

48

—

FairBetter than 93% of packages

Maintenance52

Moderate activity, may be stable

Popularity50

Moderate usage in the ecosystem

Community24

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~742 days

Recently: every ~927 days

Total

6

Last Release

268d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0c71a4f3f1d1bd7b8343828de40b45e69f81220a0f13c7571a1cc99b4f311f7d?d=identicon)[phpmailer](/maintainers/phpmailer)

---

Top Contributors

[![angrychimp](https://avatars.githubusercontent.com/u/744224?v=4)](https://github.com/angrychimp "angrychimp (12 commits)")[![bostjan](https://avatars.githubusercontent.com/u/107080?v=4)](https://github.com/bostjan "bostjan (10 commits)")[![Synchro](https://avatars.githubusercontent.com/u/81561?v=4)](https://github.com/Synchro "Synchro (10 commits)")[![pimlie](https://avatars.githubusercontent.com/u/1067403?v=4)](https://github.com/pimlie "pimlie (5 commits)")[![slimlv](https://avatars.githubusercontent.com/u/818598?v=4)](https://github.com/slimlv "slimlv (3 commits)")[![daraelmin](https://avatars.githubusercontent.com/u/8067223?v=4)](https://github.com/daraelmin "daraelmin (1 commits)")[![ToTheMax](https://avatars.githubusercontent.com/u/21971014?v=4)](https://github.com/ToTheMax "ToTheMax (1 commits)")

---

Tags

dkimdkim-verifieremailhacktoberfestphpphp-librarysecuritysignatures

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/phpmailer-dkimvalidator/health.svg)

```
[![Health](https://phpackages.com/badges/phpmailer-dkimvalidator/health.svg)](https://phpackages.com/packages/phpmailer-dkimvalidator)
```

###  Alternatives

[maize-tech/laravel-email-domain-rule

Laravel Email Domain Rule

612.0k](/packages/maize-tech-laravel-email-domain-rule)[sarfraznawaz2005/noty

Laravel package to incorporate noty flash notifications into laravel.

324.5k](/packages/sarfraznawaz2005-noty)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
