PHPackages                             marcosdipaolo/mailer - 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. marcosdipaolo/mailer

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

marcosdipaolo/mailer
====================

A PHP Mailer Package

1.0.3(3y ago)037MITPHPPHP &gt;=8.1

Since Jan 29Pushed 2y ago1 watchersCompare

[ Source](https://github.com/marcosdipaolo/mailer)[ Packagist](https://packagist.org/packages/marcosdipaolo/mailer)[ RSS](/packages/marcosdipaolo-mailer/feed)WikiDiscussions master Synced today

READMEChangelog (4)Dependencies (2)Versions (5)Used By (0)

Mailer
======

[](#mailer)

A PHP Mailer library
--------------------

[](#a-php-mailer-library)

Mailer is a super simple mail package wrapping the Symfony `SwiftMailer`

### Dependencies

[](#dependencies)

This package -as a standalone- has a dependency that has to be manually installed. This of course applies if your app doesn't already have it installed.

This dependency is the `vlucas\phpdotenv` package.

```
composer require vlucas/phpdotenv

```

Also, a properly configured `env` file

### Environmental Variables

[](#environmental-variables)

This package needs the following variables set up in you env file, at least as a empty field:

```
MAIL_HOST
MAIL_USERNAME
MAIL_PASSWORD
MAIL_PORT
MAIL_ENCRYPTION
```

### Usage

[](#usage)

With the helper `mailer()` which is the same as `new MDP\Mailer`

```
mailer()->send($subject, $mailFrom, $nameFrom, $recipients, $body);
```

You can add as a sixth parameter the **priority** as an integer, being `1` the highest and `5` the lowest. This can be achieved also using the swiftmailer constants:

```
Swift_Mime_SimpleMessage::PRIORITY_HIGHEST; // 1
Swift_Mime_SimpleMessage::PRIORITY_HIGH; // 2
Swift_Mime_SimpleMessage::PRIORITY_NORMAL; // 3
Swift_Mime_SimpleMessage::PRIORITY_LOW; // 4
Swift_Mime_SimpleMessage::PRIORITY_LOWEST; // 5
```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 80% 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 ~191 days

Total

4

Last Release

1406d ago

PHP version history (2 changes)1.0.0PHP &gt;=7.2

1.0.3PHP &gt;=8.1

### Community

Maintainers

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

---

Top Contributors

[![marcosdipaoloSV](https://avatars.githubusercontent.com/u/76181292?v=4)](https://github.com/marcosdipaoloSV "marcosdipaoloSV (4 commits)")[![marcosdipaolo](https://avatars.githubusercontent.com/u/22824656?v=4)](https://github.com/marcosdipaolo "marcosdipaolo (1 commits)")

### Embed Badge

![Health badge](/badges/marcosdipaolo-mailer/health.svg)

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k543.8M19.9k](/packages/laravel-framework)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k14](/packages/tempest-framework)[illuminate/mail

The Illuminate Mail package.

5910.6M496](/packages/illuminate-mail)[symfony/postmark-mailer

Symfony Postmark Mailer Bridge

4820.4M65](/packages/symfony-postmark-mailer)[symfony/mailchimp-mailer

Symfony Mailchimp Mailer Bridge

286.4M20](/packages/symfony-mailchimp-mailer)[symfony/mailjet-mailer

Symfony Mailjet Mailer Bridge

485.3M15](/packages/symfony-mailjet-mailer)

PHPackages © 2026

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