PHPackages                             simonschaufi/laravel-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. [Mail &amp; Notifications](/categories/mail)
4. /
5. simonschaufi/laravel-dkim

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

simonschaufi/laravel-dkim
=========================

Laravel package for signing outgoing messages with DKIM.

v3.6.0(4mo ago)29149.2k↓45%10[1 issues](https://github.com/simonschaufi/laravel-dkim/issues)MITPHP

Since Apr 29Pushed 4mo ago5 watchersCompare

[ Source](https://github.com/simonschaufi/laravel-dkim)[ Packagist](https://packagist.org/packages/simonschaufi/laravel-dkim)[ Fund](https://www.paypal.me/simonschaufi/10)[ GitHub Sponsors](https://github.com/simonschaufi)[ RSS](/packages/simonschaufi-laravel-dkim/feed)WikiDiscussions main Synced 3d ago

READMEChangelog (10)Dependencies (6)Versions (15)Used By (0)

Laravel DKIM
============

[](#laravel-dkim)

[![Donate](https://camo.githubusercontent.com/b57c445af971e3e99c2d0ccdbf4fa7faa4358ba27fecc8f68459b30289f82eda/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446f6e6174652d50617950616c2d626c75652e737667)](https://www.paypal.me/simonschaufi/20)[![GitHub Sponsors](https://camo.githubusercontent.com/acb293cadb468c7c3d2f5da9bfdb8a12476d4ee5428c198a5915f8a34720cd3a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73706f6e736f72732f73696d6f6e736368617566693f6c6162656c3d47697448756225323053706f6e736f7273)](https://github.com/sponsors/simonschaufi)[![Buy me a coffee](https://camo.githubusercontent.com/d1150deebf888c0ddc228dfc39fdc9553b4eeb3996b8364287e960d8f95c7e5a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d4275795f6d655f615f636f666665652d677261793f6c6f676f3d6275796d6561636f66666565)](https://www.buymeacoffee.com/simonschaufi)[![GitHub](https://camo.githubusercontent.com/54f05975a2c8ca1d0bdfe09e2bc9abb814c4425b67735964167df1dd8c079d60/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f73696d6f6e736368617566692f6c61726176656c2d646b696d)](https://camo.githubusercontent.com/54f05975a2c8ca1d0bdfe09e2bc9abb814c4425b67735964167df1dd8c079d60/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f73696d6f6e736368617566692f6c61726176656c2d646b696d)[![Packagist Downloads](https://camo.githubusercontent.com/5d23b32e75bc154fe1604d4ec30d2fd7bc5eff52872e395811d1d49e02a182d6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73696d6f6e736368617566692f6c61726176656c2d646b696d)](https://packagist.org/packages/simonschaufi/laravel-dkim)[![Laravel 9/10/11/12/13](https://camo.githubusercontent.com/a50934b4250cd8e268b91f66c3363b127ccbac48fa056b6a840a1d8bf399f4e7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d392f31302f31312f31322f31332d666632643230)](https://laravel.com)

A Laravel package, that allows signing emails with DKIM.

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

[](#installation)

```
composer require simonschaufi/laravel-dkim
```

In **Laravel version before 11**, the providers array in `config/app.php` has an entry with `Illuminate\Mail\MailServiceProvider::class`. Comment this line out and add your own service provider entry (in the "Package Service Providers" section):

```
/*
 * Package Service Providers...
 */
SimonSchaufi\LaravelDKIM\DKIMMailServiceProvider::class,
```

In **Laravel 11/12**, add this to your `bootstrap/app.php`:

```
->withProviders([
    \SimonSchaufi\LaravelDKIM\DKIMMailServiceProvider::class,
])
```

The DKIMMailServiceProvider extends the MailServiceProvider and overwrites a method that we need for our own behavior.

After that, you should publish the config file with:

```
php artisan vendor:publish --provider="SimonSchaufi\LaravelDKIM\DKIMMailServiceProvider" --tag dkim-config
```

Next we need to create a private and public key pair for signing and verifying the email.

There are many tools available to generate the necessary keys but here is one which is easy to use:

Enter your domain and in the "selector" field enter `default`, or adjust the "selector" in the laravel config file accordingly. Leave the remaining fields as they are.

After you have generated the keys and added the public key to your dns record, here is a tool to validate it:

Finally, store the private key for example in `storage/app/dkim/private_key.txt` and configure your settings in `.env`:

```
DKIM_DOMAIN=example.com
```

If you placed the private key somewhere else, you need to set the **full absolute path** in the environment variable or adjust the storage path in the config file.

**If you find this package helpful, please consider a donation!** Links are on top of this file.

###  Health Score

55

—

FairBetter than 97% of packages

Maintenance77

Regular maintenance activity

Popularity45

Moderate usage in the ecosystem

Community20

Small or concentrated contributor base

Maturity64

Established project with proven stability

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

Total

14

Last Release

121d ago

Major Versions

v1.1.0 → v2.0.02022-04-04

v2.0.1 → v3.0.02023-06-07

v3.5.0 → 13.x-dev2026-03-05

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/941794?v=4)[Simon Schaufelberger](/maintainers/simonschaufi)[@simonschaufi](https://github.com/simonschaufi)

---

Top Contributors

[![simonschaufi](https://avatars.githubusercontent.com/u/941794?v=4)](https://github.com/simonschaufi "simonschaufi (14 commits)")[![fjahn](https://avatars.githubusercontent.com/u/74260729?v=4)](https://github.com/fjahn "fjahn (4 commits)")[![adi64](https://avatars.githubusercontent.com/u/5867277?v=4)](https://github.com/adi64 "adi64 (3 commits)")[![laravel-shift](https://avatars.githubusercontent.com/u/15991828?v=4)](https://github.com/laravel-shift "laravel-shift (3 commits)")[![Lipa77](https://avatars.githubusercontent.com/u/71664279?v=4)](https://github.com/Lipa77 "Lipa77 (1 commits)")[![mrjose](https://avatars.githubusercontent.com/u/6103516?v=4)](https://github.com/mrjose "mrjose (1 commits)")[![mrk-j](https://avatars.githubusercontent.com/u/1250622?v=4)](https://github.com/mrk-j "mrk-j (1 commits)")[![poepperl-cc](https://avatars.githubusercontent.com/u/155750585?v=4)](https://github.com/poepperl-cc "poepperl-cc (1 commits)")[![Iaotle](https://avatars.githubusercontent.com/u/43072246?v=4)](https://github.com/Iaotle "Iaotle (1 commits)")

---

Tags

dkimdkim-signaturelaravellaravel-package

### Embed Badge

![Health badge](/badges/simonschaufi-laravel-dkim/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[propaganistas/laravel-disposable-email

Disposable email validator

6023.0M7](/packages/propaganistas-laravel-disposable-email)[illuminate/notifications

The Illuminate Notifications package.

513.1M1.1k](/packages/illuminate-notifications)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k15.1M132](/packages/laravel-pulse)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M131](/packages/roots-acorn)[flarum/core

Delightfully simple forum software.

201.4M2.3k](/packages/flarum-core)

PHPackages © 2026

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