GithubHelp home page GithubHelp logo

seven-io / php-client Goto Github PK

View Code? Open in Web Editor NEW
5.0 3.0 0.0 2.01 MB

PHP API Client for seven.io

Home Page: https://packagist.org/packages/seven.io/api

License: MIT License

PHP 100.00%
sms text2speech hlr cnam mnp composer api-client sdk rcs

php-client's Introduction

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

php-client's People

Contributors

cl77 avatar matthiez avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

php-client's Issues

[FEAT] Signing Support

Be able to extract body, Url, Method from a Request without actually sending it to be able to sign it. Or support it natively

[FEAT] Host Documentation

Please host the docs somewhere like github pages.

I dont want to download the repo just to read the docs

[BUG] After closing the cURL-handle it can not be used with curl_error

https://github.com/sms77io/php-client/blob/ec0339d72bcdfa930b80ab1c8cd2e2838b944d46/src/BaseClient.php#L97-L102

PHP 7.4.24

curl_error needs to be called before curl_close.

Or the warning 'curl_error(): supplied resource is not a valid cURL handle resource' and subsequently an exception 'Uncaught Error: Wrong parameters for UnexpectedValueException' (as it is not a string) is thrown.

It seems you put the code upside down in that spot. 'Found that bug when curl wanted to complain about missing SSL klimborium.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.