https://github.com/atiksoftware/php-class-sms-vatansms
VatanSMS PHP library. Its work with xml api for now
https://github.com/atiksoftware/php-class-sms-vatansms
Last synced: about 2 months ago
JSON representation
VatanSMS PHP library. Its work with xml api for now
- Host: GitHub
- URL: https://github.com/atiksoftware/php-class-sms-vatansms
- Owner: atiksoftware
- Created: 2019-04-30T04:02:33.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-30T06:10:38.000Z (about 7 years ago)
- Last Synced: 2025-07-08T14:01:08.619Z (11 months ago)
- Language: PHP
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# VatanSMS PHP library
Its work with xml api for now
---
### Installation
```sh
composer require atiksoftware/php-class-sms-vatansms
```
### Usage example
```php
include "../vendor/autoload.php";
use Atiksoftware\SMS\VatanSMS;
$vatanSMS = new VatanSMS(
"123456", // CustomerNo | Müşteri Numarası
"atiksofware", // Username | Kullanıcı Adı
"123456789" // Password | Şifre
);
// OR | yada
$vatanSMS = new VatanSMS();
$vatanSMS
->setCustomerNo("18018") // CustomerNo | Müşteri Numarası
->setUsername("atiksoftware") // Username | Kullanıcı Adı
->setPassword("123456789") // Password | Şifre
->setSmsType("Turkce") // Normal | Turkce
->setTitle("Minas Tirith"); // Title | Başlık
/** Clear list of created sms
* Oluşturulmuş sms listesini temizle
*/
$vatanSMS->clear();
/** create a new sms and add to wait list for will send
* thats will wait until use $vatanSMS->send(). because call oncle Api Service for all sms
*
* yeni bir sms oluştur ve gönderilmek üzere listeye ekle
* $vatanSMS->send() fonksiyonunu çağırana dek listede bekleyecektir. Tüm oluşturulmuş smsler için Api Servisi tek sefer çalıştırmak için.
*/
$vatanSMS->sms(
"Merhab Mansur\nVatanSMS e hoş geldin.", // SMS Text | SMS Metni
"05556667788" // Number(s) | Numara(lar)
);
# SMS creating examples | SMS oluşturma yöntemleri
$vatanSMS->clear();
$vatanSMS->sms(
"Merhab Mansur\nVatanSMS e hoş geldin.",
"05556667788"
);
$vatanSMS->clear();
$vatanSMS->sms(
"Merhab Mansur\nVatanSMS e hoş geldin.",
"05556667788,05445556622"
);
$vatanSMS->clear();
$vatanSMS->sms(
"Merhab Mansur\nVatanSMS e hoş geldin.",
["05556667788","05445556622","05446852201,0385620000"]
);
/** send for all created sms
* oluşturulmuş tüm smsleri gönder
*/
$vatanSMS->send();
```