PHPackages                             xcytek/email\_library - 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. xcytek/email\_library

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

xcytek/email\_library
=====================

Email Library based on PHPMailer

037PHP

Since Feb 17Pushed 5y ago1 watchersCompare

[ Source](https://github.com/xcytek/email_library)[ Packagist](https://packagist.org/packages/xcytek/email_library)[ RSS](/packages/xcytek-email-library/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (4)Used By (0)

email\_library
==============

[](#email_library)

Easy Email Library based on PHPMailer

Example How To Use:

```
// Autoload files using Composer autoload
require_once __DIR__ . '/../vendor/autoload.php';

// Email Structure Instance with Template Path and Optional Data
$email = new \Xcytek\EmailLibrary\Email('templates/basic.php', [
    'author'  => 'Alex Acosta',
    'email'   => 'alexcytek@gmail.com',
    'twitter' => '@xcytek',
]);

// Set SMTP account params
$email->config['username'] = 'your@email.com';
$email->config['password'] = 'your_password';
$email->config['who_sent'] = 'Who is sending';

// Use data necessary (MANDATORY) to send the email
$email->setUse([
    'subject' => 'Xcytek Easy Email Library',

    // Can add more than one
    'to' => [
        [
            'email' => 'alexcytek@gmail.com',
            'name'  => 'Alex Acosta',
        ]
    ]
]);

// Email Sender Instance
$emailSender = new \Xcytek\EmailLibrary\EmailSender();

// Try sending the email
if ($emailSender->send($email)) {
    echo 'Mail sent to ' . $email->getData()['email'];
} else {
    echo 'Mail cannot be delivered to ' . $email->getData()['email'];
}
```

###  Health Score

21

—

LowBetter than 17% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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://www.gravatar.com/avatar/7b8fabd37ed635ec45e703d1a67b06171be33f156c04ef20a9e8af341c0ab137?d=identicon)[xcytek](/maintainers/xcytek)

---

Top Contributors

[![xcytek](https://avatars.githubusercontent.com/u/1552538?v=4)](https://github.com/xcytek "xcytek (5 commits)")

### Embed Badge

![Health badge](/badges/xcytek-email-library/health.svg)

```
[![Health](https://phpackages.com/badges/xcytek-email-library/health.svg)](https://phpackages.com/packages/xcytek-email-library)
```

###  Alternatives

[bigbharatjain/laravel-clickatell

This package makes it easy to send sms using clickatell.com with Laravel 5.

1435.2k](/packages/bigbharatjain-laravel-clickatell)

PHPackages © 2026

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