intoegy/sms
Composer 安装命令:
composer require intoegy/sms
包简介
Send GSM Short Message (SMS) from your laravel application
README 文档
README
Send GSM Short Message (SMS) from your laravel application
Implements https://github.com/intoegy/sms for Laravel
About
The intoegy/sms package allows you to send SMS
from your laravel application.
Installation
Require the intoegy/sms package in your composer.json and update your dependencies:
composer require intoegy/sms
If you get a conflict, this could be because an older version of intoegy/sms or intoegy/sms is installed. Remove the conflicting package first, then try install again:
composer remove intoegy/sms composer require intoegy/sms
Configuration
In the first you have to create account at SMS Egypt.
The defaults are set in config/sms.php. Publish the config to copy the file to your own config:
php artisan vendor:publish --tag="sms-config"
If you get error in previuse step you have to create the configuration file called /config/sms.php contains this content:
<?php return [ 'username' => env('SMS_USER','<username>'), 'password' => env('SMS_PASS','<password>'), 'sender' => env('SMS_SENDER','<your-approved-sender>), ];
And for more security you can add this information in .env file:
#... SMS_USER = SMS_PASS = SMS_SENDER = #...
You have to add the package provider to your app providers list:
'providers' => [ // ... Intoegy\SMS\SMSServcieProvider::class, // ... ]
Global usage
SMS::send('201010000000','test message');
To you can send sms from any place in you project, add the SMS aliase in application's aliases at config/app.php:
'aliases' => [ "SMS"=>Intoegy\SMS\SMSServiceProvider::class, // ... ];
License
Released under the MIT License, see LICENSE.
intoegy/sms 适用场景与选型建议
intoegy/sms 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 18 次下载、GitHub Stars 达 0, 最近一次更新时间为 2022 年 01 月 06 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「sms」 「gsm」 「laravel sms」 「send sms」 「Egypt」 「smseg」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 intoegy/sms 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 intoegy/sms 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 intoegy/sms 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
SDK for payment gateway PlatbaMobilom.sk for PHP7.0
Extensible library for building notifications and sending them via different delivery channels.
MvcCore - Extension - Form - Field - Text - form field types - input:text, input:email, input:password, input:search, input:tel, input:url and textarea.
GlobalSportsMedia (GSM) API client
A Laravel package for sending SMS using the SMPP protocol, built on top of the PHP-SMPP library. This package provides a simple and efficient way to integrate SMS functionality into your Laravel applications.
yii2-sms expand
统计信息
- 总下载量: 18
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-01-06