PHPackages                             werx/email - 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. werx/email

ActiveLibrary

werx/email
==========

Composer-friendly wrapper for CI Email.

1.2.1(3y ago)24.1k↓100%4MITPHPPHP &gt;= 5.4

Since Aug 21Pushed 3y ago2 watchersCompare

[ Source](https://github.com/werx/email)[ Packagist](https://packagist.org/packages/werx/email)[ Docs](https://github.com/werx/email)[ RSS](/packages/werx-email/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (8)Used By (0)

werx/email
==========

[](#werxemail)

Use [CodeIgniter's](https://github.com/EllisLab/CodeIgniter/) email library outside CodeIgniter.

Full Documentation at

Usage
-----

[](#usage)

```
$email = new \werx\Email\Message();
$email->clear();
$email->from('me@example.com', 'My Name');
$email->to('you@example.com');
$email->subject('your subject line');
$email->attach($attachment, 'attachment', 'filename.html', 'text/html');
$email->message('Message body goes here.');
$email->send();
```

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

[](#installation)

This package is installable and autoloadable via Composer as [werx/email](https://packagist.org/packages/werx/email). If you aren't familiar with the Composer Dependency Manager for PHP, [you should read this first](https://getcomposer.org/doc/00-intro.md).

```
$ composer require werx/email --prefer-dist
```

Testing
-------

[](#testing)

There are unit tests available for this package. To run them, you must have [MailCatcher](http://mailcatcher.me/) installed and running.

```
$ vendor/bin/phpunit
```

###  Health Score

33

—

LowBetter than 74% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 93.3% 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 ~477 days

Recently: every ~705 days

Total

7

Last Release

1412d ago

Major Versions

0.2.0 → 1.0.02015-01-23

### Community

Maintainers

![](https://www.gravatar.com/avatar/1cda8a02682a999e89bc2443c6c169b1dc9228cc4709d0b5fad642dc2a151141?d=identicon)[joshmoody](/maintainers/joshmoody)

---

Top Contributors

[![joshmoody](https://avatars.githubusercontent.com/u/1504862?v=4)](https://github.com/joshmoody "joshmoody (14 commits)")[![daarond](https://avatars.githubusercontent.com/u/572928?v=4)](https://github.com/daarond "daarond (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

PHPackages © 2026

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