PHPackages                             turkeysms/php-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. turkeysms/php-sdk

ActiveLibrary[API Development](/categories/api)

turkeysms/php-sdk
=================

Official TurkeySMS API V4 Generic PHP SDK

10PHP

Since Apr 10Pushed 3mo agoCompare

[ Source](https://github.com/turkeysms/php)[ Packagist](https://packagist.org/packages/turkeysms/php-sdk)[ RSS](/packages/turkeysms-php-sdk/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

TurkeySMS PHP SDK (Official Generic) 🐘
======================================

[](#turkeysms-php-sdk-official-generic-)

Official **TurkeySms V4 Generic PHP Client** — Modern, PSR-4 compliant SDK powered by Guzzle. Seamlessly integrate SMS &amp; OTP into any standard PHP environment.

🛠 Installation
--------------

[](#-installation)

Install the package via Composer:

```
composer require turkeysms/php-sdk
```

---

🚀 Quick Start
-------------

[](#-quick-start)

### Initialize Client

[](#initialize-client)

```
require 'vendor/autoload.php';

use TurkeySms\TurkeySms;

$client = new TurkeySms("your_api_key_here");
```

### Sending Standard SMS

[](#sending-standard-sms)

```
$result = $client->send([
    'mobile' => '905xxxxxxxxx',
    'text'   => 'Hello from TurkeySMS PHP SDK!',
    'title'  => 'SENDER_ID'
]);

print_r($result);
```

### Sending OTP SMS

[](#sending-otp-sms)

```
$result = $client->sendOtp([
    'mobile' => '905xxxxxxxxx',
    'lang'   => 1, // 0: English, 1: Turkish, 2: Arabic
    'digits' => 4
]);
```

### Check Balance

[](#check-balance)

```
$balance = $client->getBalance();
echo "Your balance: " . $balance['balance'];
```

---

🛡 Security
----------

[](#-security)

If you discover any security-related issues, please email  instead of using the issue tracker.

📄 License
---------

[](#-license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

---

© 2026 **TurkeySMS Bilişim ve İletişim Hizmetleri Tic. Ltd. Şti.**

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance54

Moderate activity, may be stable

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity12

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/2f15737f5559c8a5d0517f17a613c136b8e84c97c1f61eef496548f8506eb8b5?d=identicon)[turkeysms](/maintainers/turkeysms)

---

Top Contributors

[![MehmetAhmetoglu](https://avatars.githubusercontent.com/u/48739064?v=4)](https://github.com/MehmetAhmetoglu "MehmetAhmetoglu (2 commits)")

### Embed Badge

![Health badge](/badges/turkeysms-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/turkeysms-php-sdk/health.svg)](https://phpackages.com/packages/turkeysms-php-sdk)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k18](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
