turkeysms/php-sdk
Composer 安装命令:
composer require turkeysms/php-sdk
包简介
Official TurkeySMS API V4 Generic PHP SDK
关键字:
README 文档
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.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-04-10