Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/seven-io/php-client
PHP API Client for seven.io
https://github.com/seven-io/php-client
api-client cnam composer hlr mnp rcs sdk sms text2speech
Last synced: 2 months ago
JSON representation
PHP API Client for seven.io
- Host: GitHub
- URL: https://github.com/seven-io/php-client
- Owner: seven-io
- License: mit
- Created: 2019-11-12T14:21:28.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-06-11T07:17:45.000Z (7 months ago)
- Last Synced: 2024-06-14T15:07:08.700Z (6 months ago)
- Topics: api-client, cnam, composer, hlr, mnp, rcs, sdk, sms, text2speech
- Language: PHP
- Homepage: https://packagist.org/packages/seven.io/api
- Size: 2.46 MB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Official PHP API Client
## Installation
**Via Composer:**
```shell script
composer require seven.io/api
```Alternatively you
can [download as *.ZIP](https://github.com/seven-io/php-client/releases/latest "download as *.ZIP")
if you don't use Composer.### Usage
```php
use Seven\Api\Client;
use Seven\Api\Resource\Sms\SmsParams;
use Seven\Api\Resource\Sms\SmsResource;$client = new Client('MY_VERY_SECRET_API_KEY!');
$smsResource = new SmsResource($client);
$smsParams = new SmsParams('HI2U', '+4901234567890');
$res = $smsResource->dispatch($smsParams);
var_dump($res);
```See [docs](/docs) for more details.
##### Tests
Some basic tests are implemented. You can run them like this:
```shell script
SEVEN_API_KEY= php vendor/bin/phpunit tests
```or
```shell script
SEVEN_API_KEY_SANDBOX= php vendor/bin/phpunit tests
```Make sure to fill in the values.
###### Support
Need help? Feel free to [contact us](https://www.seven.io/en/company/contact/).
[![MIT](https://img.shields.io/badge/License-MIT-teal.svg)](LICENSE)