This package is abandoned and no longer maintained. No replacement package was suggested.

Messente's API which allows sending messages via various channels with fallback options.

1.0.3 2019-05-09 10:36 UTC

This package is not auto-updated.

Last update: 2021-01-28 18:35:23 UTC


This is the PHP library for Messente Omnichannel API


PHP 5.5 and later

Installation & Usage


To install the bindings via Composer, add the following to composer.json:

  "repositories": [
      "type": "git",
      "url": ""
  "require": {
    "messente/messente-omnichannel-php": "*@master"

Then run composer install

Manual Installation

Download the files and include autoload.php:

require_once(__DIR__ . '/vendor/autoload.php');


To run the unit tests:

composer install

Getting Started

Please follow the installation procedure and then run the following:

require_once(__DIR__ . '/../vendor/autoload.php');

use \Messente\Omnichannel\Api\OmnimessageApi;
use \Messente\Omnichannel\Configuration;
use \Messente\Omnichannel\Model\Omnimessage;
use \Messente\Omnichannel\Model\Viber;
use \Messente\Omnichannel\Model\SMS;
use \Messente\Omnichannel\Model\WhatsApp;
use \Messente\Omnichannel\Model\WhatsAppText;

// Configure HTTP basic authorization: basicAuth
$config = Configuration::getDefaultConfiguration()

$apiInstance = new OmnimessageApi(
    new GuzzleHttp\Client(),

$omnimessage = new Omnimessage([
	"to" => "<phone number in e.164 format>"

$viber = new Viber(
    ["text" => "Hello Viber!", "sender" => "MyViberSender"]

$sms = new SMS(
    ["text" => "Hello SMS!", "sender" => "MySmsSender"]

$whatsAppText = new WhatsAppText(["body" => "Hello WhatsApp!"]);

$whatsapp = new WhatsApp(
	['text' => $whatsAppText, "sender" => "MyWhatsAppSender"]

$omnimessage->setMessages([$whatsapp, $viber, $sms]);

try {
    $result = $apiInstance->sendOmnimessage($omnimessage);
} catch (Exception $e) {
    echo 'Exception when calling OmnimessageApi->sendOmnimessage: ', $e->getMessage(), PHP_EOL;

Documentation for API Endpoints

All URIs are relative to

Class Method HTTP request Description
DeliveryReportApi retrieveDeliveryReport GET /omnimessage/{omnimessage_id}/status Retrieves the delivery report for the Omnimessage
OmnimessageApi cancelScheduledMessage DELETE /omnimessage/{omnimessage_id} Cancels a scheduled Omnimessage
OmnimessageApi sendOmnimessage POST /omnimessage Sends an Omnimessage

Documentation For Models

Documentation For Authorization


  • Type: HTTP basic authentication