SmsManager.cz implementation
Switch branches/tags
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.
.idea
src
tests
.gitignore
LICENSE.txt
README.md
composer.json
composer.lock
phpunit.xml

README.md

PHP Library for SmsManager.cz

Installation

Install superfaktura/smsmanager using Composer:

$ composer require superfaktura/smsmanager

Dependencies

  • PHP >=5.6
  • PHP extensions: php_curl

Example Usage

use Po1nt\SmsManager\Dispatcher;
use Po1nt\SmsManager\Message;
use Po1nt\SmsManager\Recipient;

/** @var Recipient $recipient */
$recipient = new Recipient('420 900 123 456');

/** @var Message $message */
$message = new Message('Best message text ever');
$message->addRecipient($recipient);

/** @var Dispatcher $dispatcher */
$dispatcher = new Dispatcher('example@smsmanager.cz', 'examplePass');
print_r($dispatcher->send($message));

License

MIT