定制 er.dhruvmishra/sendotp 二次开发

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

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

er.dhruvmishra/sendotp

最新稳定版本:2.0

Composer 安装命令:

composer require er.dhruvmishra/sendotp

包简介

A PHP library to send OTP messages using MSG91 API (PHP 8.2 compatible)

README 文档

README

This PHP library allows you to send OTP messages via the MSG91 API. It is built for PHP 8.2 and adheres to modern PHP best practices.

Installation

Install via Composer:

composer require er.dhruvmishra/sendotp

USAGE

<?php
require 'vendor/autoload.php';

use SendOtp\Client;

$sendOtp = new Client('YOUR_AUTH_KEY');

// Optionally, set sender and custom message
$sendOtp->setSender('SENDERID')->setMessage('Your OTP is: {otp}');

$response = $sendOtp->send('9876543210', 'YOUR_TEMPLATE_ID');

print_r($response);
?>

License

This library is open-sourced software licensed under the MIT license.

统计信息

  • 总下载量: 5
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-03-31