PHPackages                             mailerlite/mailerloop - 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. mailerlite/mailerloop

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

mailerlite/mailerloop
=====================

096Java

Since Sep 2Pushed 12y ago1 watchersCompare

[ Source](https://github.com/notrix/mailerloop)[ Packagist](https://packagist.org/packages/mailerlite/mailerloop)[ RSS](/packages/mailerlite-mailerloop/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

MailerLoop API
==============

[](#mailerloop-api)

Official PHP wrapper for MailerLoop API

Methods
-------

[](#methods)

### setRecipient( $email \[, $name = null \] )

[](#setrecipient-email--name--null--)

'name' parameter is optional.

### setApiKey( $apiKey )

[](#setapikey-apikey-)

### setVariables( $variables )

[](#setvariables-variables-)

### setVariable( $name, $value )

[](#setvariable-name-value-)

### setTemplate( $id )

[](#settemplate-id-)

### setLanguage( $code )

[](#setlanguage-code-)

### addRecipient( $email, $variables \[, $attachments = array() \] )

[](#addrecipient-email-variables--attachments--array--)

### addRecipients( $recipients )

[](#addrecipients-recipients-)

$recipients must be an array of arrays. each of recipient must have fields 'email' and 'variables'. Optionally each recipient can have 'attachments' field. Each attachment mush have 'filename' and 'content' fields.

### addAttachment( $filename, $content )

[](#addattachment-filename-content-)

### send()

[](#send)

Unused methods:
---------------

[](#unused-methods)

### setFromName( $name )

[](#setfromname-name-)

### setFromEmail( $email )

[](#setfromemail-email-)

### setType( $type )

[](#settype-type-)

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90.9% 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/1104512?v=4)[MailerLite](/maintainers/mailerlite)[@mailerlite](https://github.com/mailerlite)

---

Top Contributors

[![talandis](https://avatars.githubusercontent.com/u/1598160?v=4)](https://github.com/talandis "talandis (20 commits)")[![aur1mas](https://avatars.githubusercontent.com/u/123205?v=4)](https://github.com/aur1mas "aur1mas (1 commits)")[![notrix](https://avatars.githubusercontent.com/u/914926?v=4)](https://github.com/notrix "notrix (1 commits)")

### Embed Badge

![Health badge](/badges/mailerlite-mailerloop/health.svg)

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

###  Alternatives

[mattketmo/email-checker

Throwaway email detection library

2752.1M5](/packages/mattketmo-email-checker)[sarfraznawaz2005/noty

Laravel package to incorporate noty flash notifications into laravel.

324.5k](/packages/sarfraznawaz2005-noty)

PHPackages © 2026

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