Componette

Componette

jakubenglicky

jakubenglicky / sms-manager v3.0.0

PHP SDK for sending SMS via smsmanager.cz

download-cloud-line composer require jakubenglicky/sms-manager

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%)

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

This panel was inspired by the Nextras Mail Panel

  • v3.0.0 PHP8.1

    • add support for PHP8.1
    • drop support for PHP7.1
    • Migrate CI from Travis to Github Actions
    • Allow Guzzle version 7
  • v2.3.0 PHP8.0

  • v2.2.0 Fixup bad extends in Exceptions class

  • v2.1.0 Added BaseException for catching errors

    ⚠️ This release has bug, please update to v2.2.0.

    thx @podolinek

  • 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.

Componette Componette felix@nette.org