seven.io / api
Official API Client for requesting the seven.io messaging Gateway.
Installs: 4 446
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 3
Forks: 0
Open Issues: 3
Requires
- php: >=8.2
- ext-ctype: *
- ext-curl: *
- ext-json: *
- ext-mbstring: *
Requires (Dev)
- ext-simplexml: *
- ext-soap: *
- ext-xdebug: *
- phpunit/phpunit: ^11
README
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
$client = new Seven\Api\Client('MY_VERY_SECRET_API_KEY!'); $params = new Seven\Api\Params\SmsParams('HI2U', '+4901234567890'); $client->sms->dispatch($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.