Download the PHP package hahadu/laravel-notfication-sms without Composer

On this page you can find all versions of the php package hahadu/laravel-notfication-sms. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-notfication-sms

Laravel SMS Notification 使用指南

这个包提供了一个简单的方式在 Laravel 应用中发送短信通知。

快速开始

1. 配置短信服务

config/sms.php 中配置您的短信服务参数,或在 .env 文件中设置:

2. 创建通知类

3. 配置模型

在需要接收短信通知的模型中(如 User 模型):

4. 发送通知

高级用法

自定义短信内容和回调

批量发送

自定义短信客户端

如果需要在运行时修改短信配置:

常见问题

  1. 模板参数格式

    • 参数必须是数组形式
    • 键名必须与短信模板中的变量名一致
  2. 错误处理

    • 所有的发送错误都会抛出异常
    • 建议使用 try-catch 捕获并处理异常
  3. 队列配置
    • 通知默认使用队列发送
    • 确保已配置队列驱动
    • 可以通过 php artisan queue:work 处理队列

调试建议

  1. 开发环境中查看日志:

  2. 测试短信发送:

注意事项

  1. 确保配置了正确的短信服务凭证
  2. 注意短信模板的参数匹配
  3. 建议使用队列发送短信
  4. 注意处理发送失败的情况
  5. 在生产环境中妥善保护短信配置信息

All versions of laravel-notfication-sms with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
laravel/framework Version ^10.0|^11.0|^12.0
hahadu/sms Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package hahadu/laravel-notfication-sms contains the following files

Loading the files please wait ...