Statistics
96
1
0
26d
Badges
Dependencies

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

  • v2.0.0 v2.0.0

    New release of SMS Manager is here!

    • Support PHP 7.1 or higher
    • Refactored, strict typed

    Some BC-break

    1. Array of phone numbers in calling method setTo() must be array of strings
    2. Phone number must by in correct format +420777111222
    3. Get recipient numbers is only possible from Message object

    Debugging

    • Now, you can test sending SMS via Tracy SMS Panel
  • v1.0.0 v1.0.0

    Hurray, first release of SMS Manager library is here! 👑

    • Support PHP 7.0 or higher
    • You can use Nette/DI extension

    This version can send SMS and get user information.

Is this addon outdated? Did you find an issue? Please report it.

Componette Componette admin@componette.com