定制 turkeysms/laravel 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

turkeysms/laravel

Composer 安装命令:

composer require turkeysms/laravel

包简介

TurkeySMS API V4 Official Laravel Package

README 文档

README

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

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 the config file to customize your settings:

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

⚙️ Configuration

Add your API Key to your .env file:

TURKEYSMS_API_KEY=your_api_key_here
TURKEYSMS_DEFAULT_TITLE=SENDER

🚀 Usage

Sending Standard SMS

use TurkeySms;

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

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)

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

Check Balance

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

🛡 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
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-04-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固