turkeysms / php-sdk
Official TurkeySMS API V4 Generic PHP SDK
dev-main
2026-04-10 04:17 UTC
Requires
- php: >=7.4
- guzzlehttp/guzzle: ^7.0
This package is auto-updated.
Last update: 2026-05-10 04:59:41 UTC
README
Official TurkeySms V4 Generic PHP Client — Modern, PSR-4 compliant SDK powered by Guzzle. Seamlessly integrate SMS & OTP into any standard PHP environment.
🛠 Installation
Install the package via Composer:
composer require turkeysms/php-sdk
🚀 Quick Start
Initialize Client
require 'vendor/autoload.php'; use TurkeySms\TurkeySms; $client = new TurkeySms("your_api_key_here");
Sending Standard SMS
$result = $client->send([ 'mobile' => '905xxxxxxxxx', 'text' => 'Hello from TurkeySMS PHP SDK!', 'title' => 'SENDER_ID' ]); print_r($result);
Sending OTP SMS
$result = $client->sendOtp([ 'mobile' => '905xxxxxxxxx', 'lang' => 1, // 0: English, 1: Turkish, 2: Arabic 'digits' => 4 ]);
Check Balance
$balance = $client->getBalance(); echo "Your balance: " . $balance['balance'];
🛡 Security
If you discover any security-related issues, please email support@turkeysms.com.tr instead of using the issue tracker.
📄 License
The MIT License (MIT). Please see License File for more information.
© 2026 TurkeySMS Bilişim ve İletişim Hizmetleri Tic. Ltd. Şti.