PHP SDK for sending SMS via smsmanager.cz
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.
src/SmsManager fix cs Oct 26, 2018
tests refactoring Message class, rewrite tests, fix response compatible Oct 26, 2018
.gitignore first part of refactoring Oct 18, 2018
.travis.yml PHPStan Jan 10, 2019
LICENSE Initial commit Nov 3, 2017
composer.json PHPStan Jan 10, 2019
phpstan.neon first part of refactoring Oct 18, 2018
readme.md Add information of Tracy Debug Panel into Readme Oct 26, 2018
ruleset.xml refactoring, install phpstan Mar 21, 2018

readme.md

Downloads this Month Build Latest version

SMS Manager PHP SDK

Library for sending SMS via https://smsmanager.cz/

Information about HTTP Request API https://smsmanager.cz/api/http

Instalation:

composer require jakubenglicky/sms-manager

Easy using:

$msg = new \jakubenglicky\SmsManager\Message\Message();
$msg->setTo(['+420777111222']);
$msg->setBody('Message text');

$client = new \jakubenglicky\SmsManager\Http\Client('api-key');
$client->send($msg);

Nette DI:

extensions:
	smsmanager: jakubenglicky\SmsManager\DI\SmsManagerExtension

smsmanager:
	apiKey: 'sms-manager-api-key'
    	

Use interface IClient for sending SMS in Nette.

SMS Tracy Panel

config.local.neon

tracy:
	bar:
	    - jakubenglicky\SmsManager\Diagnostics\Panel(%tempDir%)

smsmanager:
        class: jakubenglicky\SmsManager\IClient
        factory: jakubenglicky\SmsManager\Diagnostics\DebugClient(%tempDir%)

This panel was inspired by the Nextras Mail Panel