PHPackages                             sarbacane-sdk/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. sarbacane-sdk/php

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

sarbacane-sdk/php
=================

Sarbacane SDK to send e-mail and text messages (sms).

1.0.6(9y ago)1425[1 issues](https://github.com/sarbacane-sdk/php/issues)MITPHPPHP &gt;=5.3.0

Since Mar 23Pushed 9y ago1 watchersCompare

[ Source](https://github.com/sarbacane-sdk/php)[ Packagist](https://packagist.org/packages/sarbacane-sdk/php)[ RSS](/packages/sarbacane-sdk-php/feed)WikiDiscussions master Synced 2d ago

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

[![alt tag](https://cloud.githubusercontent.com/assets/18444530/23370454/08b3a170-fd15-11e6-946c-ecc2db251ad7.png)](https://cloud.githubusercontent.com/assets/18444530/23370454/08b3a170-fd15-11e6-946c-ecc2db251ad7.png)

### Sarbacane SDK PHP - Send e-mail and text messages (sms)

[](#sarbacane-sdk-php---send-e-mail-and-text-messages-sms)

- Account &amp; API Key
- Installation
- Download sources
- Authentication
- Buy credits
- Send E-mail
- Send SMS
- Webhooks

#### Account &amp; API Key

[](#account--api-key)

##### E-mail

[](#e-mail)

[Create E-mail account](https://www.tipimail.com/register)

[Generate your E-mail Tokens (be logged in first)](https://app.tipimail.com/#/app/settings/smtp_and_apis)

[![email tokens](https://cloud.githubusercontent.com/assets/18444530/23396595/dd275f1c-fd94-11e6-8b92-1f3c3a707ddc.jpg)](https://cloud.githubusercontent.com/assets/18444530/23396595/dd275f1c-fd94-11e6-8b92-1f3c3a707ddc.jpg)

##### SMS

[](#sms)

[Create SMS account](https://www.primotexto.com/creer_compte.asp)

[Generate your SMS API Key (be logged in first)](https://www.primotexto.com/webapp/#/developer/keys)

[![api_key_real](https://cloud.githubusercontent.com/assets/18444530/23396617/f0e0f996-fd94-11e6-9440-cb41f54c5a4b.png)](https://cloud.githubusercontent.com/assets/18444530/23396617/f0e0f996-fd94-11e6-9440-cb41f54c5a4b.png)

#### Installation

[](#installation)

```
composer require sarbacane-sdk/php

```

#### Sources

[](#sources)

```
git clone https://github.com/sarbacane-sdk/php.git .

```

#### Authentication

[](#authentication)

###### E-mail

[](#e-mail-1)

```
sarbacane_sdk\authenticationManager::setEmailTokens('MY_EMAIL_USERNAME', 'MY_EMAIL_APIKEY');

```

###### SMS

[](#sms-1)

```
sarbacane_sdk\authenticationManager::setSmsApikey('MY_SMS_APIKEY');

```

#### Credits

[](#credits)

[Buy E-mail credits](https://fr.tipimail.com/tarifs)

[Buy SMS credits](https://www.primotexto.com/tarif-sms-web.asp)

#### Send E-mail

[](#send-e-mail)

```
    $email = new sarbacane_sdk\SBEmailMessage();
    $email->mailFrom = "sender@domain.com";
    $email->mailFromName = "Sender Name";
    $email->subject = "Message sent by Sarbacane SDK PHP";
    $email->htmlBody = "Here is the HTML content of the message.";
    $email->textBody = "Here is the TEXT content of the message.";
    $email->recipients = array(
        "address1@domain.com",
        "address2@domain.com"
    );
    sarbacane_sdk\messagesManager::sendEmailMessage($email);

```

#### Send SMS

[](#send-sms)

```
    $sms = new \sarbacane_sdk\SBSmsMessage();
    $sms->type = 'notification';
    $sms->number = '+33600000000';
    $sms->message = 'Code de confirmation: 283951';
    $sms->sender = 'YourCompany';
    $sms->campaignName = 'Code de confirmation';
    $sms->category = 'codeConfirmation';
    sarbacane_sdk\messagesManager::sendSmsMessage($sms);

```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3388d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/18444530?v=4)[Clément BEAUVOIS](/maintainers/sarbacane-sdk)[@sarbacane-sdk](https://github.com/sarbacane-sdk)

---

Top Contributors

[![sarbacane-sdk](https://avatars.githubusercontent.com/u/18444530?v=4)](https://github.com/sarbacane-sdk "sarbacane-sdk (34 commits)")

---

Tags

apiemailsarbacanesdksms

### Embed Badge

![Health badge](/badges/sarbacane-sdk-php/health.svg)

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

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[getkirby/cms

The Kirby core

1.5k584.8k454](/packages/getkirby-cms)[ivantcholakov/codeigniter-phpmailer

A CodeIgniter 3 compatible email-library powered by PHPMailer.

25214.3k](/packages/ivantcholakov-codeigniter-phpmailer)

PHPackages © 2026

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