承接 mrhmh/sms-rahyab 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

mrhmh/sms-rahyab

Composer 安装命令:

composer require mrhmh/sms-rahyab

包简介

README 文档

README

Latest Version on Packagist Software License

This package makes it easy to send notifications using sms.rahyab.ir.

Installation

Install this package with Composer:

composer require mrhmh/sms-rahyab

Setting up the Rahyab service

Add your Rahyab credential to config/services.php:

// config/services.php
...
'sms_rahyab' => [
        'company'  => env('SMS_RAHYAB_COMPANY'),
        'host'     => env('SMS_RAHYAB_HOST'),
        'port'     => env('SMS_RAHYAB_PORT'),
        'username' => env('SMS_RAHYAB_USERNAME'),
        'password' => env('SMS_RAHYAB_PASSWORD'),
        'sender'   => env('SMS_RAHYAB_SENDER'),
        'token'    => env('SMS_RAHYAB_TOKEN'),
    ],
...

Usage

You can use the channel in your via() method inside the notification:

use Illuminate\Notifications\Notification;
use MrHMH\SmsRahyab\SmsRahyabChannel;
use MrHMH\SmsRahyab\SmsRahyabMessage;

class AccountApproved extends Notification
{
    public function via($notifiable)
    {
        return [SmsRahyabChannel::class];
    }

    public function toSmsRahyab($notifiable)
    {
        return SmsRahyabMessage::create("Task #{$notifiable->id} is complete!");
    }
}

In your notifiable model, make sure to include a routeNotificationForSmsrahyab() method, which return a phone number.

public function routeNotificationForSmsrahyab()
{
    return $this->mobile;
}

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2021-03-31

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固