This package is abandoned and no longer maintained. No replacement package was suggested.
There is no license information available for the latest version (0.0.1.1) of this package.

SMSApi wrapper

Installs: 1 721

Dependents: 0

Suggesters: 0

Security: 0

pkg:composer/solvenfinance/smsapi

0.0.1.1 2017-04-18 12:48 UTC

This package is not auto-updated.

Last update: 2019-01-17 12:51:44 UTC


README

Bardzo prosty interfejs do wysyłania wiadomości tekstowych

Bilbioteka obsługuje

  • wysyłanie widomości SMS

Obsługiwani dostawcy

  • TODO SMSapi.pl

I. Instalacja

composer require solvenfinance/smsapi

II. API

1. Konfiguracja adaptera

use SmsApi\SmsApi;

SmsApi::setAdapter(new SmsApiAdapter([
 // ... config in here
]));

2. Wysłanie SMS

use SmsApi\SmsApi;
use SmsApi\Message\TextMessage;
use SmsApi\ValueObject\PhoneNumber;
use SmsApi\ValueObject\StringValue;

SmsApi::send(
    new TextMessage(
        PhoneNumber::fromNative(600700800),
        StringValue::fromNative("Hello, recipient. How are you?"),
        StringValue::fromNative("Solven.pl"),
    );
);

Copyright: Solven Finance sp z o. o.