承接 fitprime/l9-smsapi-notification-channel 相关项目开发

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

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

fitprime/l9-smsapi-notification-channel

最新稳定版本:2.0.0

Composer 安装命令:

composer require fitprime/l9-smsapi-notification-channel

包简介

SMSAPI notification channel for Laravel 10+

README 文档

README

Latest Version on Packagist Software License StyleCI Total Downloads

This package makes it easy to send notifications using SMSAPI with Laravel 9.x

Easy to use notification channel for Laravel 9.x.

$user->notify(new TestSms('This is a test message'));

Contents

Installation

composer require fitprime/l9-smsapi-notification-channel

Create an account on SMSAPI and get your API token. Put your api key in the .env file in the root directory of your application.

SMSAPI_AUTH_TOKEN=<your_auth_token>

Setting up the L9SmsApi service

If you needs to change the default setting for your app you must publish the configuration file.

Usage

Send a message

use Illuminate\Notifications\Notification;
use Fitprime\L9SmsApi\L9SmsApiChannel;
use Fitprime\L9SmsApi\L9SmsApiMessage;

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

    public function toL9Smsapi($notifiable)
    {
        return (new L9SmsApiMessage())
            ->content( 'Text message content' )
            ->to($notifiable->phone_number);
    }
}

Available Message methods

content() set the SMS message content

to() set the SMS message recipient

sender() set the SMS message sender

Changelog

Please see CHANGELOG for more information what has changed recently.

Testing

$ composer test

Security

If you discover any security related issues, please use the issue tracker.

Contributing

Please see CONTRIBUTING for details.

Credits

License

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-02-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固