{"id":33996562,"url":"https://github.com/hostbrook/laravel-dkim","last_synced_at":"2026-06-15T20:00:30.943Z","repository":{"id":56985903,"uuid":"384260603","full_name":"hostbrook/laravel-dkim","owner":"hostbrook","description":"Sign all outgoing emails in Laravel 9.x with a DKIM signature.","archived":false,"fork":false,"pushed_at":"2025-03-17T13:25:43.000Z","size":28,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-24T13:39:59.921Z","etag":null,"topics":["dkim","dkim-signature","laravel"],"latest_commit_sha":null,"homepage":"https://github.com/hostbrook/laravel-dkim","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/hostbrook.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,"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":"2021-07-08T22:16:31.000Z","updated_at":"2025-03-17T13:24:12.000Z","dependencies_parsed_at":"2023-11-17T06:00:28.754Z","dependency_job_id":null,"html_url":"https://github.com/hostbrook/laravel-dkim","commit_stats":{"total_commits":24,"total_committers":8,"mean_commits":3.0,"dds":0.5416666666666667,"last_synced_commit":"51e018c1420cc9c010b4abc01aefe71229d9bd53"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/hostbrook/laravel-dkim","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hostbrook%2Flaravel-dkim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hostbrook%2Flaravel-dkim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hostbrook%2Flaravel-dkim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hostbrook%2Flaravel-dkim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hostbrook","download_url":"https://codeload.github.com/hostbrook/laravel-dkim/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hostbrook%2Flaravel-dkim/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34377983,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-15T02:00:07.085Z","response_time":63,"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":["dkim","dkim-signature","laravel"],"created_at":"2025-12-13T08:24:44.630Z","updated_at":"2026-06-15T20:00:30.930Z","avatar_url":"https://github.com/hostbrook.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ca href=\"https://github.com/hostbrook/laravel-dkim\"\u003e\u003cimg alt=\"GitHub release (latest by date)\" src=\"https://img.shields.io/github/v/release/hostbrook/laravel-dkim\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/hostbrook/laravel-dkim\"\u003e\u003cimg alt=\"GitHub code size in bytes\" src=\"https://img.shields.io/github/languages/code-size/hostbrook/laravel-dkim\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/hostbrook/laravel-dkim\"\u003e\u003cimg alt=\"License\" src=\"https://img.shields.io/github/license/hostbrook/laravel-dkim\"\u003e\u003c/a\u003e\n\n\u003cp\u003e\u003c/p\u003e\n\n# Laravel 9.x, 10.x, 11.x and 12.x DKIM signature\n\nSign all outgoing emails in Laravel 9.x, 10.x, 11.x, 12.x and 13.x with a DKIM signature.\n\n\u003e **IMPORTANT!** The package version that supports Laravel 10.x starts from 1.2.5\n\n\u003e **IMPORTANT!** The package version that supports Laravel 11.x starts from 1.4\n\n\u003e **IMPORTANT!** The package version that supports Laravel 12.x starts from 1.5\n\n\u003e **IMPORTANT!** The package version that supports Laravel 13.x starts from 1.6\n\n## Installation and setup\n\n1. Get the latest version of the package via Composer:\n\n```\ncomposer require hostbrook/laravel-dkim\n```\n\n2. In `config/app.php` comment the line with the original mail service provider (if exists) and add the line with the new mail service provider:\n\n```\n// Illuminate\\Mail\\MailServiceProvider::class,\nHostBrook\\LaravelDkim\\DkimMailServiceProvider::class,\n```\n\n3. Add your DKIM private key settings in `/.env` or in `/config/mail.php`. The priority of DKIM settings is from `/.env` file.\n\n   3.1. The syntax, if you want to add DKIM private key settings in `/.env` file:\n\n   ```\n   DKIM_SELECTOR=\"selector1\"\n   DKIM_DOMAIN=\"domain.name\"\n   DKIM_PASSPHRASE=\"\"\n   DKIM_PRIVATE_KEY=\"/storage/app/dkim/private_key.txt\"\n   ```\n\n   As an option, you can add the full RSA Private Key to the `.env` file, for example:\n\n   ```\n   DKIM_PRIVATE_KEY=\"-----BEGIN RSA PRIVATE KEY-----\n   MIIEowIBAAKCAQEAq1SCAScet736Rr/f36OYUo8cRziq4v2uq6kNs5wzEaaqUAoh\n   ...\n   ENwDlqtgpM9D7YznrL6W9NH7fdSwmz2Ux0frY6weuBx/VSeJn1fb\n   -----END RSA PRIVATE KEY-----\"\n   ```\n\n   3.2. The syntax, if you want to add DKIM private key settings in `/config/mail.php` file:\n\n   ```\n   'dkim_selector' =\u003e 'selector1',\n   'dkim_domain' =\u003e 'domain.name',\n   'dkim_passphrase' =\u003e '', // leave empty if you didn’t protect the private key\n   'dkim_private_key' =\u003e '/storage/app/dkim/private_key.txt',\n   ```\n\n   As an option, you can add the full RSA Private Key to the `/config/mail.php` file, for example:\n\n   ```\n   'dkim_private_key' =\u003e '-----BEGIN RSA PRIVATE KEY-----\n   MIIEowIBAAKCAQEAq1SCAScet736Rr/f36OYUo8cRziq4v2uq6kNs5wzEaaqUAoh\n   ...\n   ENwDlqtgpM9D7YznrL6W9NH7fdSwmz2Ux0frY6weuBx/VSeJn1fb\n   -----END RSA PRIVATE KEY-----',\n   ```\n\n## Notes and recommendations\n\n- No matter where you keep the RSA Private Key, in `/.env` file or in `/config/mail.php` file or in a text file, everything between two instances `'-----BEGIN RSA PRIVATE KEY-----'` and `'-----END RSA PRIVATE KEY-----'` must be right up to the start of the line!\n- It is not recommended to keep private key directly in the `/config/mail.php` file for security reasons especially if your project is not in the private repository.\n- If you would like to keep RSA Private key in a text file, the path to the text file must be relative to the project base path (like in the example above).\n\n## Upgrading\n\nWhenever there is a new release, then from the command line in your **_project root_**:\n\n```shell\ncomposer update\n```\n\n## Deleting package\n\nRunning the following command will remove the package from vendor folder:\n\n```shell\ncomposer remove hostbrook/laravel-dkim\n```\n\n## DKIM info\n\nRead more how to:\n\n- [Generate DKIM Public and Private Keys](https://tools.socketlabs.com/dkim/generator)\n- [Check if DKIM record is shown and has a correct format](https://dmarcly.com/tools/dkim-record-checker)\n- [Test the Spammyness of your Emails](https://www.mail-tester.com)\n\n## References\n\n- [DUDU54/laravel-dkim](https://github.com/DUDU54/laravel-dkim)\n- [simonschaufi/laravel-dkim](https://github.com/simonschaufi/laravel-dkim)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhostbrook%2Flaravel-dkim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhostbrook%2Flaravel-dkim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhostbrook%2Flaravel-dkim/lists"}