turkeysms/php-sdk

Official TurkeySMS API V4 Generic PHP SDK

Maintainers

Package info

github.com/turkeysms/php

pkg:composer/turkeysms/php-sdk

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

dev-main 2026-04-10 04:17 UTC

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.