Integrate sMsmode API with your projects
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
doc
src
tests
.coveralls.yml
.gitattributes
.gitignore
.scrutinizer.yml
.travis.yml
CHANGELOG.md
LICENSE
README.md
composer.json
phpunit.xml.dist

README.md

smsmode-library

Build Status Coverage Status Scrutinizer Code Quality Latest Stable Version Latest Unstable Version License composer.lock

Integrate sMsmode API with your projects.


Compatibility

PHP


Installation

Open a command console, enter your project directory and execute the following command to download the latest stable version of this package:

$ composer require webeweb/smsmode-library "^1.0"

This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.


Usage

    // Create the provider.
    $provider = new SMSModeProvider(new SMSModeAuthentication(), new SMSModeSendSMSRequest());

    // Initialize the authentication.
    $provider->getAuthentication()->setUsername("username");
    $provider->getAuthentication()->setPassword("password");

    // Initialize the request.
    $provider->getRequest()->addNumber("33612345678");
    $provider->getRequest()->setMessage("Hello world !");
    $provider->getRequest()->setSender("sender");
    $provider->getRequest()->setStop(SMSModeSendSMSRequest::STOP_ONLY);

    // Call API.
    $response = $provider->callAPI();

Testing

To test the package, is better to clone this repository on your computer. Open a command console and execute the following commands to download the latest stable version of this package:

$ mkdir smsmode-library
$ cd smsmode-library
$ git clone https://github.com/webeweb/smsmode-library package.git .
$ composer install

Once all required libraries are installed then do:

$ vendor/bin/phpunit

Todo


License

smsmode-library is released under the LGPL License. See the bundled LICENSE file for details.

Please note that the sMsmode API is not free for use, see their product page for details on pricing.