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

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

supermeteor/sdk-php
===================

This librabry use to create sms and email message using HTTP request

v1.7.1(8mo ago)11.3k1MITPHP

Since Jun 15Pushed 8mo ago1 watchersCompare

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

READMEChangelog (6)Dependencies (1)Versions (17)Used By (0)

Supermeteor
===========

[](#supermeteor)

Supermeteor is PHP SDK use to create cloud message: whatsapp, sms and email etc

How to use
==========

[](#how-to-use)

install using composer
----------------------

[](#install-using-composer)

```
composer require supermeteor/sdk-php
```

include vendor/autoload.php in your file
----------------------------------------

[](#include-vendorautoloadphp-in-your-file)

```
require_once '../vendor/autoload.php';
use Supermeteor\Client;
```

Initialise the SDK object
-------------------------

[](#initialise-the-sdk-object)

```
$sm = new Supermeteor('');
```

### 1. For sending sms:

[](#1-for-sending-sms)

pass type, phone, message as function parameter, Here is the sample function call for send sms.

#### Type must be: sms

[](#type-must-be-sms)

```
$result = $sm->SendMessage('', '+XXXXXXXXX', 'your message');
```

### 2. For sending email:

[](#2-for-sending-email)

> **IMPORTANT:** Custom email sender must be preset

pass email, subject, message as function parameter, Here is the sample function call for send email.

```
$result = $sm->sendEmail('mail@email.com', 'subject', 'your message');
```

### 3. For sending a simple whatsapp message:

[](#3-for-sending-a-simple-whatsapp-message)

pass free message as function parameter, Here is the sample function call for send whatsapp.

```
$fromPhone = '+852 6444 4444'
$toPhone = '+852 6888 8888'
$result = $sm->sendWhatsapp($fromPhone, $toPhone, 'your message');
```

Whatsapp template message
=========================

[](#whatsapp-template-message)

Message types overview (example)
--------------------------------

[](#message-types-overview-example)

 ```
graph TD
    booking[booking_confirmation]
    reminder[booking_reminder]
    cb[call_back]
    free[free_text]

    free --> |session message| client

    booking --> |template message| client
    cb --> |template message| client
    reminder --> |template message| client

    subgraph "SESSION type (free text)"
      free
     end

    subgraph TEMPLATE type
      booking
      reminder
      cb
     end

    click booking "#booking_confirmation" "asd" _self
    click greeting "#greeting"
    click cb "#call_back"
    click free "#free_text"
```

      Loading SESSION message example
-----------------------

[](#session-message-example)

```
{
  "fromPhone": "+852 6111 2222",
  "secret": "{{secret}}",
  "phone": "+852 6333 4444",
  "message": "free text blah blah blah..."
}
```

Code sample:

```
$supermeteor->sendWhatsapp($fromPhone, $toPhone, 'free text blah blah blah...');
```

Template message example
------------------------

[](#template-message-example)

> **IMPORTANT:** template message must be same as predefined

### example: booking\_confirmation

[](#example-booking_confirmation)

message pre-approved

> Hello {{1}} , this is a confirmation of your consultation on {{2}}. ⭐We are at {{3}}.⭐

```
{
  "fromPhone": "+852 6111 2222",
  "secret": "{{secret}}",
  "phone": "+852 6333 4444",
  "message": "",
  "template": {
    "name": "booking_confirmation",
    "language": {
      "policy": "deterministic",
      "code": "en"
    },
    "components": [
      {
        "type": "body",
        "parameters": [
          {
            "type": "text",
            "text": "Krishna"
          },
          {
            "type": "text",
            "text": "2022-06-11 10:00"
          },
          {
            "type": "text",
            "text": "4214 Lynn Street, Milton, MA"
          }
        ]
      }
    ]
  }
}
```

Code sample

```
$template = new \Supermeteor\WhatsappTemplateMessage(
    'booking_confirmation',
    'en',
    ['John', '2019-01-12']
);

// send a whatsapp template message
$supermeteor->sendWhatsapp($fromPhone, $toPhone, $template);
```

example: call\_back
-------------------

[](#example-call_back)

message pre-approved

> Hi {{1}}, Just called you but not able to reach you, when is a good time to call backat {{2}}?

```
{
  "fromPhone": "+852 6111 2222",
  "secret": "{{secret}}",
  "phone": "+852 6333 4444",
  "template": {
    "name": "call_back",
    "language": {
      "policy": "deterministic",
      "code": "en"
    },
    "components": [
      {
        "type": "body",
        "parameters": [
          {
            "type": "text",
            "text": "Krishna"
          },
          {
            "type": "text",
            "text": "2022-06-11 10:00"
          }
        ]
      }
    ]
  }
}
```

example: reminder
-----------------

[](#example-reminder)

message pre-approved

> Hello {{1}}, this is a reminder of your consultation at {{2}}. ⭐{{3}}⭐

```
{
  "fromPhone": "+852 6111 2222",
  "secret": "{{secret}}",
  "phone": "+852 6333 4444",
  "template": {
    "name": "greeting",
    "language": {
      "policy": "deterministic",
      "code": "en"
    },
    "components": [
      {
        "type": "body",
        "parameters": [
          {
            "type": "text",
            "text": "Krishna"
          },
          {
            "type": "text",
            "text": "2022-06-11 10:00"
          },
          {
            "type": "text",
            "text": "4214 Lynn Street, Milton, MA"
          }
        ]
      }
    ]
  }
}
```

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance62

Regular maintenance activity

Popularity17

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 82.8% 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 ~152 days

Recently: every ~275 days

Total

16

Last Release

240d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1629979600619e2f085c5019b21cdb6ebc85aba32bc06ffe33d628d4e21512f3?d=identicon)[supermeteor](/maintainers/supermeteor)

---

Top Contributors

[![lncknight](https://avatars.githubusercontent.com/u/3077077?v=4)](https://github.com/lncknight "lncknight (24 commits)")[![rrajsoni8000](https://avatars.githubusercontent.com/u/51830775?v=4)](https://github.com/rrajsoni8000 "rrajsoni8000 (5 commits)")

### Embed Badge

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

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

###  Alternatives

[laravel-notification-channels/telegram

Telegram Notifications Channel for Laravel

1.1k3.4M35](/packages/laravel-notification-channels-telegram)[s-ichikawa/laravel-sendgrid-driver

This library adds a 'sendgrid' mail driver to Laravel.

4139.3M1](/packages/s-ichikawa-laravel-sendgrid-driver)[laravel-notification-channels/microsoft-teams

A Laravel Notification Channel for Microsoft Teams

1603.0M7](/packages/laravel-notification-channels-microsoft-teams)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)[guanguans/notify

Push notification SDK(AnPush、Bark、Chanify、DingTalk、Discord、Gitter、GoogleChat、IGot、Lark、Mattermost、MicrosoftTeams、NowPush、Ntfy、Push、Pushback、PushBullet、PushDeer、PushMe、Pushover、PushPlus、QQ、RocketChat、ServerChan、ShowdocPush、SimplePush、Slack、Telegram、WeWork、WPush、XiZhi、YiFengChuanHua、ZohoCliq、ZohoCliqWebHook、Zulip).

682104.9k7](/packages/guanguans-notify)[tzsk/sms

A robust and unified SMS gateway integration package for Laravel, supporting multiple providers.

320244.3k6](/packages/tzsk-sms)

PHPackages © 2026

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