PHPackages                             copernica/smtpeter-php - 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. copernica/smtpeter-php

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

copernica/smtpeter-php
======================

PHP lib to send emails with SMTPeter API

v1.0.1(8y ago)0275MITPHPPHP &gt;=5.2.0

Since Oct 27Pushed 8y ago10 watchersCompare

[ Source](https://github.com/CopernicaMarketingSoftware/smtpeter-php)[ Packagist](https://packagist.org/packages/copernica/smtpeter-php)[ Docs](https://www.smtpeter.com)[ RSS](/packages/copernica-smtpeter-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (4)Used By (0)

SMTPeter composer package
=========================

[](#smtpeter-composer-package)

A library to abstract API calls to [SMTPeter REST API](https://www.smtpeter.com/documentation/rest-api). It exposes one class: Email. This class can be used to easily created email message that can be sent via [SMTPeter](https://www.smtpeter.com).

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

[](#installation)

Package can be installed via composer cli, executing following line.

```
composer require copernica/smtpeter-php

```

Example
=======

[](#example)

Sending very simple email message can be done with following script.

```
/**
 *  REST API token that can be obtained from SMTPeter website.
 */
$apiToken = '';

// create new instance of email message
$email = new SMTPeter\Email($apiToken);

// set the email
$email->setFrom('Paweł Kuźnik ');
$email->setSubject('SMTPeter test email');
$email->setText('text version');
$email->setHtml('HTML version');

// composer array of TO addresses and CC addresses
$to = array('someuser@example.com');
$cc = array('someotheruser@example.com');

// set to and cc
$email->setTo($to);
$email->setCC($cc);

// append recipients
$email->appendRecipients($to);
$email->appendRecipients($cc);

// send the email
$email->send();
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~339 days

Total

3

Last Release

3178d ago

Major Versions

v0.1 → v1.0.02015-10-28

### Community

Maintainers

![](https://www.gravatar.com/avatar/280f489771824732a0d083f46813e870bb4060eba8cd20df16f26c9bab540f2c?d=identicon)[pawel.kuznik.copernica](/maintainers/pawel.kuznik.copernica)

---

Top Contributors

[![TychoA](https://avatars.githubusercontent.com/u/10380597?v=4)](https://github.com/TychoA "TychoA (1 commits)")

---

Tags

apiemailsmtppeteremailcopernicasmtpeter

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/copernica-smtpeter-php/health.svg)

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

###  Alternatives

[egulias/email-validator

A library for validating emails against several RFCs

11.6k691.3M307](/packages/egulias-email-validator)[sendgrid/sendgrid

This library allows you to quickly and easily send emails through Twilio SendGrid using PHP.

1.5k47.5M164](/packages/sendgrid-sendgrid)[pelago/emogrifier

Converts CSS styles into inline style attributes in your HTML code

94944.1M110](/packages/pelago-emogrifier)[zbateson/mail-mime-parser

MIME email message parser

54149.2M79](/packages/zbateson-mail-mime-parser)[soundasleep/html2text

A PHP script to convert HTML into a plain text format

48519.5M75](/packages/soundasleep-html2text)[opcodesio/mail-parser

Parse emails without the mailparse extension

226.8M8](/packages/opcodesio-mail-parser)

PHPackages © 2026

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