PHPackages                             pimlie/php-dkim - 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. [Security](/categories/security)
4. /
5. pimlie/php-dkim

ActiveLibrary[Security](/categories/security)

pimlie/php-dkim
===============

Finally, a PHP5 class for not just signing, but \_verifying\_ DKIM signatures.

0.2.3(1y ago)14.5k1MITPHP

Since Jan 6Pushed 1y ago3 watchersCompare

[ Source](https://github.com/pimlie/php-dkim)[ Packagist](https://packagist.org/packages/pimlie/php-dkim)[ RSS](/packages/pimlie-php-dkim/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

php-dkim
========

[](#php-dkim)

**Finally, a PHP5 class for not just signing, but *verifying* DKIM signatures.**

Requirements
------------

[](#requirements)

Currently this package requires PHP 5.1.2 or greater (or PECL `hash` &gt;= 1.1), which provides the `hash()` function.

Also required, at least one of the following present alongside your PHP installation.

- [openssl](http://us1.php.net/manual/en/openssl.installation.php)
- [phpseclib](http://phpseclib.sourceforge.net/)

At least one of those packages must be present in order to compute the RSA signature verification.

Usage
-----

[](#usage)

&lt;pending&gt;

Changelog
---------

[](#changelog)

**v0.2.1***11:28 AM 3/3/2016*

- Fixed index variable issue (#7)
- Addressed validation issue when public key record did not have public-key data (#7)
- Minor version numbering corrections
- Dropped old copyright info for as-yet-still-empty Sign code
- Fixed new-line trimming issue (potentially causing verification problems?) (#7)

**v0.2***5:36 PM 1/2/2013*

- Splitting TODOs into separate file.
- Finally got the header hash to match my expected value, based on debugging output from Mail::DKIM::Validate.
- Removed var\_dump() calls
- Still doesn't verify signatures properly - not sure where to go from here.

**v0.1***10:55 AM 12/31/2012*Initial commit. Most of the structure is in place, and the body hashes are validating, but I haven't been able to get the signature validation correct just yet. I must have some whitespace issue or some random public key problem.

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance49

Moderate activity, may be stable

Popularity23

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 53.5% of commits — single point of failure

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 ~2365 days

Total

2

Last Release

369d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f6ab53ca46fdd11b23ba73014172a1ef0f9cef3988314c0bd07a960bd9aca31e?d=identicon)[pimlie](/maintainers/pimlie)

---

Top Contributors

[![angrychimp](https://avatars.githubusercontent.com/u/744224?v=4)](https://github.com/angrychimp "angrychimp (23 commits)")[![pimlie](https://avatars.githubusercontent.com/u/1067403?v=4)](https://github.com/pimlie "pimlie (9 commits)")[![jornane](https://avatars.githubusercontent.com/u/767872?v=4)](https://github.com/jornane "jornane (6 commits)")[![slimlv](https://avatars.githubusercontent.com/u/818598?v=4)](https://github.com/slimlv "slimlv (3 commits)")[![M4GNV5](https://avatars.githubusercontent.com/u/5504713?v=4)](https://github.com/M4GNV5 "M4GNV5 (1 commits)")[![naetraga](https://avatars.githubusercontent.com/u/15329554?v=4)](https://github.com/naetraga "naetraga (1 commits)")

---

Tags

signatureverifydkim

### Embed Badge

![Health badge](/badges/pimlie-php-dkim/health.svg)

```
[![Health](https://phpackages.com/badges/pimlie-php-dkim/health.svg)](https://phpackages.com/packages/pimlie-php-dkim)
```

###  Alternatives

[phpseclib/phpseclib

PHP Secure Communications Library - Pure-PHP implementations of RSA, AES, SSH2, SFTP, X.509 etc.

5.6k465.6M1.5k](/packages/phpseclib-phpseclib)[robrichards/xmlseclibs

A PHP library for XML Security

41484.3M150](/packages/robrichards-xmlseclibs)[ass/xmlsecurity

The XmlSecurity library is written in PHP for working with XML Encryption and Signatures

955.7M35](/packages/ass-xmlsecurity)[ionux/phactor

Phactor is a high-performance PHP implementation of the elliptic curve math functions required to generate &amp; verify private/public (asymmetric) EC keypairs and ECDSA signatures based on secp256k1 curve parameters. This library also includes a class to generate Service Identification Numbers (SINs) based on the published Identity Protocol v1 spec.

5287.3k30](/packages/ionux-phactor)[greenter/xmldsig

Libreria para firmar XML según normativa de SUNAT en Facturación Electrónica

40855.0k12](/packages/greenter-xmldsig)[fr3d/xmldsig

Tool for easy management of XML Signatures (http://www.w3.org/TR/xmldsig-core/)

63154.4k1](/packages/fr3d-xmldsig)

PHPackages © 2026

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