PHPackages                             turkeysms/laravel - 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/laravel

ActiveLibrary[API Development](/categories/api)

turkeysms/laravel
=================

TurkeySMS API V4 Official Laravel Package

00PHP

Since Apr 10Pushed 3mo agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

TurkeySMS Laravel Package (Official) 🚀
======================================

[](#turkeysms-laravel-package-official-)

Integrate **TurkeySMS API V4** into your Laravel application seamlessly. This official package provides a clean, elegant syntax for sending SMS, OTP, and managing your TurkeySMS account. Featuring Facade support and Auto-Discovery.

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

[](#-installation)

You can install the package via composer:

```
composer require turkeysms/laravel
```

The package will automatically register its service provider and facade (Auto-Discovery).

### Publish Configuration

[](#publish-configuration)

Publish the config file to customize your settings:

```
php artisan vendor:publish --provider="TurkeySms\Laravel\TurkeySmsServiceProvider" --tag="config"
```

---

⚙️ Configuration
----------------

[](#️-configuration)

Add your **API Key** to your `.env` file:

```
TURKEYSMS_API_KEY=your_api_key_here
TURKEYSMS_DEFAULT_TITLE=SENDER
```

---

🚀 Usage
-------

[](#-usage)

### Sending Standard SMS

[](#sending-standard-sms)

```
use TurkeySms;

$result = TurkeySms::send([
    'mobile' => '905xxxxxxxxx',
    'text'   => 'Hello from TurkeySMS Laravel!',
    'title'  => 'SENDER'
]);
```

### Sending OTP SMS

[](#sending-otp-sms)

Ultra-fast delivery for verification codes:

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

### Advanced OTP (Custom Text)

[](#advanced-otp-custom-text)

```
$result = TurkeySms::sendDetailedOtp([
    'mobile' => '905xxxxxxxxx',
    'title'  => 'SENDER',
    'text'   => 'Your verification code is: TS-CODE',
    'lang'   => 1
]);
```

### Check Balance

[](#check-balance)

```
$balance = TurkeySms::getBalance();
// Returns: ["status" => "success", "balance" => "1500 SMS", ...]
```

---

🛡 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

18

—

LowBetter than 7% of packages

Maintenance54

Moderate activity, may be stable

Popularity0

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-laravel/health.svg)

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

###  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)
