Via Composer:
composer require seven.io/api
Alternatively you can download as *.ZIP if you don't use Composer.
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.
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.
Need help? Feel free to contact us.