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 3d 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 22% 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://www.gravatar.com/avatar/6f40e782a8e6ee52ee612002cb2d97a56c298f5b166e249adea21bcd731fdd27?d=identicon)[mailerlite](/maintainers/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

[tijsverkoyen/css-to-inline-styles

CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.

5.8k505.3M227](/packages/tijsverkoyen-css-to-inline-styles)[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)

PHPackages © 2026

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