sendee / sendee-php
a php library for the Sendee API
1.0
2022-10-27 15:29 UTC
Requires
- php: >=7.1.0
- guzzlehttp/guzzle: ^6.3 || ^7.0
README
sendee-php
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!