PHPackages                             dotkernel/dot-controller-plugin-mail - 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. dotkernel/dot-controller-plugin-mail

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

dotkernel/dot-controller-plugin-mail
====================================

DotKernel mail controller plugin component

2.9.2(2y ago)31.8k1MITPHPPHP ~8.1.0 || ~8.2.0 || ~8.3.0

Since Mar 9Pushed 1y ago1 watchersCompare

[ Source](https://github.com/dotkernel/dot-controller-plugin-mail)[ Packagist](https://packagist.org/packages/dotkernel/dot-controller-plugin-mail)[ RSS](/packages/dotkernel-dot-controller-plugin-mail/feed)WikiDiscussions 2.9-PHP-8.1 Synced 2mo ago

READMEChangelog (10)Dependencies (5)Versions (12)Used By (0)

Caution

Security-Only Maintenance Mode
------------------------------

[](#security-only-maintenance-mode)

This package is considered feature-complete, and is now in **security-only** maintenance mode.

[![OSS Lifecycle](https://camo.githubusercontent.com/8fc31c04e5ee72041c5b3ddf4f48818d19c681396e07a1f5131f22742bb3acef/68747470733a2f2f696d672e736869656c64732e696f2f6f73736c6966656379636c652f646f746b65726e656c2f646f742d636f6e74726f6c6c65722d706c7567696e2d6d61696c)](https://camo.githubusercontent.com/8fc31c04e5ee72041c5b3ddf4f48818d19c681396e07a1f5131f22742bb3acef/68747470733a2f2f696d672e736869656c64732e696f2f6f73736c6966656379636c652f646f746b65726e656c2f646f742d636f6e74726f6c6c65722d706c7567696e2d6d61696c)[![GitHub license](https://camo.githubusercontent.com/ce9634e44cbcd6a3f6428e9b0456ef0d1414ff89e38fc42ce1c040f9551de250/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f646f746b65726e656c2f646f742d636f6e74726f6c6c65722d706c7567696e2d6d61696c)](https://github.com/dotkernel/dot-controller-plugin-mail/blob/2.0.1/LICENSE.md)[![PHP from Packagist (specify version)](https://camo.githubusercontent.com/b057cd75cc736e1bc217bf84c962ef383ed7b79666f94a89f94d2340eee1c261/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f646f746b65726e656c2f646f742d636f6e74726f6c6c65722d706c7567696e2d6d61696c2f322e392e32)](https://camo.githubusercontent.com/b057cd75cc736e1bc217bf84c962ef383ed7b79666f94a89f94d2340eee1c261/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f646f746b65726e656c2f646f742d636f6e74726f6c6c65722d706c7567696e2d6d61696c2f322e392e32)

dot-controller-plugin-mail
==========================

[](#dot-controller-plugin-mail)

Mail controller plugin for easy access to dot-mail service from any controller.

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

[](#installation)

Run the following command in your project's root directory

```
$ composer require dotkernel/dot-controller-plugin-mail
```

This will also install packages `dotkernel/dot-controller` and `'dotkernel/dot-mail` as dependencies. Next, make sure you merge the `ConfigProvider` to your application's configuration.

Usage
-----

[](#usage)

Because multiple mail services can be defined in the dot-mail module, there can also be requested as controller plugins by following the convention

```
//calling this plugins without parameters, will return the mail service instead, otherwise will use parameters to send directly the e-mail
$this->sendMail(); //will return the default mail service

$this->sendMailYourMailService(); //will return the mail service named your_mail_service
```

Controller mail plugins are invokable. To send an email you can use the following 2 methods

- `$this->sendMail(array $mailConfig)` - will send a mail through a mail service configured based on the $mailConfig param. The array parameter valid keys are body, subject, to, from, cc, bcc, attachments. The body parameter can be specified as an array too in which case the $body\[0\] should be the template name to use as mail template and $body\[1\] should be optionally the template parameters.
- `$this->sendMail($body, $subject, $to, $from, $cc, $bcc, $attachments)` - the parameters have the same meaning as in the previous method

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance26

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity85

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 65.8% 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 ~257 days

Recently: every ~169 days

Total

11

Last Release

784d ago

Major Versions

0.1.3 → v1.0.02018-05-14

v1.0.0 → v2.0.02020-01-30

PHP version history (4 changes)0.1.0PHP ^7.1

v2.0.0PHP ^7.2

2.9.0PHP ~8.0.0 || ~8.1.0 || ~8.2.0

2.9.2PHP ~8.1.0 || ~8.2.0 || ~8.3.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1156873?v=4)[Dotkernel](/maintainers/dotkernel)[@dotkernel](https://github.com/dotkernel)

---

Top Contributors

[![n3vrax](https://avatars.githubusercontent.com/u/5805542?v=4)](https://github.com/n3vrax "n3vrax (25 commits)")[![gabidj](https://avatars.githubusercontent.com/u/3998573?v=4)](https://github.com/gabidj "gabidj (4 commits)")[![arhimede](https://avatars.githubusercontent.com/u/22009710?v=4)](https://github.com/arhimede "arhimede (4 commits)")[![roli85](https://avatars.githubusercontent.com/u/48314447?v=4)](https://github.com/roli85 "roli85 (2 commits)")[![claurospace](https://avatars.githubusercontent.com/u/224870609?v=4)](https://github.com/claurospace "claurospace (1 commits)")[![pinclau](https://avatars.githubusercontent.com/u/24491812?v=4)](https://github.com/pinclau "pinclau (1 commits)")[![SergiuBota1](https://avatars.githubusercontent.com/u/50962867?v=4)](https://github.com/SergiuBota1 "SergiuBota1 (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/dotkernel-dot-controller-plugin-mail/health.svg)

```
[![Health](https://phpackages.com/badges/dotkernel-dot-controller-plugin-mail/health.svg)](https://phpackages.com/packages/dotkernel-dot-controller-plugin-mail)
```

###  Alternatives

[tijsverkoyen/css-to-inline-styles

CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.

5.8k505.3M227](/packages/tijsverkoyen-css-to-inline-styles)[minishlink/web-push

Web Push library for PHP

1.9k12.0M53](/packages/minishlink-web-push)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[spatie/url-signer

Generate a url with an expiration date and signature to prevent unauthorized access

4422.3M16](/packages/spatie-url-signer)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)[slm/mail

Integration of various email service providers in the Laminas\\Mail

108732.4k1](/packages/slm-mail)

PHPackages © 2026

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