承接 altrntv/sms-aero 相关项目开发

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

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

altrntv/sms-aero

Composer 安装命令:

composer require altrntv/sms-aero

包简介

SMS AERO Notifications channel for Laravel.

README 文档

README

This package makes it easy to send notifications using smsaero.ru with Laravel.

Contents

Installation

Install this package with Composer:

composer require altrntv/sms-aero

Setting up the Sms Aero service

Add your Sms Aero Api ID and Host to your config/services.php:

...
'sms-aero' => [
    'username'  => env('SMS_AERO_USERNAME'),
    'password' => env('SMS_AERO_PASSWORD'),
    'host' => env('SMS_AERO_HOST', 'https://gate.smsaero.ru/v2'),
],
...

Usage

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

use NotificationChannels\SmsAero\SmsAeroMessage;
use NotificationChannels\SmsAero\SmsAeroChannel;
use Illuminate\Notifications\Notification;

class OrderStatus extends Notification
{
    public function via(mixed $notifiable): array
    {
        return [
            SmsAeroChannel::class,
            // or
            'sms-aero',
        ];
    }

    public function toSmsAero(mixed $notifiable): SmsAeroMessage
    {
        return SmsAeroMessage::create('Message', 'Sender Name');
    }
}

In your notifiable model, make sure to include a routeNotificationForSmsAero() method, which returns a phone number or an array of phone numbers.

public function routeNotificationForSmsAero(): ?string
{
    return $this->phone;
}

Available Message methods

Method Description
number(string $number) Set a phone number.
dateSend(int $dateSend) The date for the delayed sending of the message in unixtime format.
callbackUrl(string $callbackUrl) The URL for sending the message status in the format https://your.site in response, the system waits for the 200 status.
callbackFormat(string $callbackFormat) If callbackFormat=JSON is set, data in JSON format will be sent to callbackUrl, otherwise x-www-form-urlencoded is used.
shortLink(?int $shortLink) If shortLink=1, all links will be shortened automatically.

Changelog

Please see CHANGELOG for more information what has changed recently.

Testing

$ composer test

Security

If you discover any security related issues, please email sssecularization@gmail.com instead of using the issue tracker.

Contributing

Please see CONTRIBUTING for details.

Credits

License

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-06-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固