sendee/sendee-php

a php library for the Sendee API

1.0 2022-10-27 15:29 UTC

This package is auto-updated.

Last update: 2024-11-27 22:59:18 UTC


README

sendee-php

Latest Stable Version Quality Gate Status Total Downloads Latest Unstable Version License PHP Version Require

Documentation

The documentation for the Sendee API can be found here

Installation

sendee-php is available on packagist as the sendee/sendee-php package

composer require sendee/sendee-php

Quickstart

Send an SMS

// Send a single SMS using Sendee's REST API and PHP
<?php
$apiKey = "1|ZXXXXXX";

$client = new Sendee\SendeePhp\SendeeClient($apiKey);
$message =  $client->sendMessage(
  '+15555559410', // Text this Number
  [
    'from' => '+15555558108', // From a valid Twilio number
    'body' => 'Queue me up with Sendee'
  ]
);

print $message;

Send a Bulk SMS

// Send a multiple SMS with the same body using Sendee's REST API and PHP
<?php
$apiKey = "1|ZXXXXXX";

$client = new Sendee\SendeePhp\SendeeClient($apiKey);
$message =  $client->sendBulkMessage(
  '+15555558108', // From a valid Twilio Number
  [
    'to' => [ // Text this array of numbers
        '+15555559410','+15555559411','+15555559412',
    ],
    'body' => 'this is an api test bulk'
   ]
);

print $message;

Getting Help

If you need help installing or using the library, file a support ticket.

If you've found a bug in the library or would like new features added open issues or pull requests against this repo!