sms77/api

This package is abandoned and no longer maintained. The author suggests using the seven.io/api package instead.

Official API Client for requesting the seven.io messaging Gateway.

v4.0.0 2023-11-23 09:52 UTC

This package is auto-updated.

Last update: 2024-03-19 09:37:40 UTC


README

68747470733a2f2f7777772e736576656e2e696f2f77702d636f6e74656e742f75706c6f6164732f4c6f676f2e737667

Official PHP API Client

Installation

Via Composer:

composer require seven.io/api

Alternatively you can download as *.ZIP if you don't use Composer.

Usage

use Seven\Api\Client;
use Seven\Api\Params\SmsParams;
$client = new Client('MY_VERY_SECRET_API_KEY!');
$params = new SmsParams('HI2U', '+4901234567890');
$client->sms($params);

See docs for more details.

Tests

Some basic tests are implemented. You can run them like this:

SEVEN_API_KEY=<API-KEY> SEVEN_API_KEY_SANDBOX=<SANDBOX-API-KEY> php vendor/bin/phpunit tests/Client

Make sure to fill in the values.

Support

Need help? Feel free to contact us.

MIT