PHPackages                             sofiakb/php-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. sofiakb/php-mail

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

sofiakb/php-mail
================

A library for sending mail.

081PHP

Since Jan 31Pushed 4y ago1 watchersCompare

[ Source](https://github.com/sofiakb/php-mail)[ Packagist](https://packagist.org/packages/sofiakb/php-mail)[ RSS](/packages/sofiakb-php-mail/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

[![Contributors](https://camo.githubusercontent.com/122238f186193b6a80c8006e086a78f842c381099a5a8be700585564bdff7d48/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6e7472696275746f72732f736f6669616b622f7068702d6d61696c2e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/sofiakb/php-mail/graphs/contributors)[![Forks](https://camo.githubusercontent.com/ebe8d61d84e02d296456358137bf78b0abe2b4917c822d01f9ee5a023dbe8e91/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f736f6669616b622f7068702d6d61696c2e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/sofiakb/php-mail/network/members)[![Stargazers](https://camo.githubusercontent.com/04c766e39ddc5c6241756e9d99a7bded8026080eb97063f108e0448d27669560/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f736f6669616b622f7068702d6d61696c2e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/sofiakb/php-mail/stargazers)[![Issues](https://camo.githubusercontent.com/8796ab0a0fa6b67fa37f745b15fa7da660b62f4d37b7b8a224821524e090d4f4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f736f6669616b622f7068702d6d61696c2e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/sofiakb/php-mail/issues)[![MIT License](https://camo.githubusercontent.com/e83d3b2d8e80dfb0d9666d83b04e64789283c62648cc7df86c546b0be6a40404/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f736f6669616b622f7068702d6d61696c2e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/sofiakb/php-mail/blob/main/LICENSE)

php-mail
========

[](#php-mail)

 A library for sending mail !

 [Report Bug](https://github.com/sofiakb/php-mail/issues) · [Request Feature](https://github.com/sofiakb/php-mail/issues)

 Table of Contents1. [About the library](#about-the-project)
    - [Built With](#built-with)
2. [Getting Started](#getting-started)
    - [Prerequisites](#prerequisites)
    - [Installation](#installation)
3. [Usage](#usage)
4. [Roadmap](#roadmap)
5. [Contributing](#contributing)
6. [License](#license)
7. [Contact](#contact)
8. [Acknowledgements](#acknowledgements)

About The Library
-----------------

[](#about-the-library)

Cette librairie permet d'envoyer des e-mails simplement.

### Built With

[](#built-with)

- [PHP](https://php.net)

### Prerequisites

[](#prerequisites)

- php &gt;= 7.4

Installation
============

[](#installation)

```
composer require sofiakb/php-mail
```

Then, in your .env file

```
MAIL_HOST=
MAIL_PORT=
MAIL_USER=
MAIL_PASSWORD=
MAIL_ENCRYPTION=
```

Usage
=====

[](#usage)

```
use Sofiakb\Mail\Facades\Mail;

Mail::create()
    ->setTo(RECIPIENT_EMAIL)
    ->text("email content"));
```

Roadmap
-------

[](#roadmap)

See the [open issues](https://github.com/sofiakb/php-mail/issues) for a list of proposed features (and known issues).

License
-------

[](#license)

Distributed under the MIT License. See `LICENSE` for more information.

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity27

Early-stage or recently created project

 Bus Factor1

Top contributor holds 66.7% 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.

### Community

Maintainers

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

---

Top Contributors

[![sofiakb](https://avatars.githubusercontent.com/u/83745581?v=4)](https://github.com/sofiakb "sofiakb (6 commits)")[![sowsouf](https://avatars.githubusercontent.com/u/17595186?v=4)](https://github.com/sowsouf "sowsouf (3 commits)")

### Embed Badge

![Health badge](/badges/sofiakb-php-mail/health.svg)

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

###  Alternatives

[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)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)[eduardokum/laravel-mail-auto-embed

Library for embed images in emails automatically

1702.0M5](/packages/eduardokum-laravel-mail-auto-embed)

PHPackages © 2026

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