PHP code example of zembrowski / phpsms-poland
1. Go to this page and download the library: Download zembrowski/phpsms-poland library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
zembrowski / phpsms-poland example snippets
php
uests::register_autoloader();
php
ogin = 'login';
$password = 'password';
$recipient = '501234567';
$text = 'It works! Thanks :)';
try {
$sms = new zembrowski\SMS\Orange();
$sms->login($login, $password);
$sms->send($recipient, $text);
} catch (Exception $e) {
echo '[ERROR] ' . $e->getMessage();
}