定制 cyaoz94/sms123 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

cyaoz94/sms123

Composer 安装命令:

composer require cyaoz94/sms123

包简介

A simple package to simplify API integration with SMS Provider SMS123 for Laravel 8

README 文档

README

Latest Version on Packagist Build Status Quality Score Total Downloads

A simple package to simplify API integration with SMS Provider SMS123 for Laravel 8

Installation

You can install the package via composer:

composer require cyaoz94/sms123

Configs

This is not required by default, the package will retrieve the API key and email defined in your .env file using the key SMS123_API_KEY and SMS123_EMAIL. However, you can publish and modify the config file to your liking.

php artisan vendor:publish --provider="Cyaoz94\Sms123\Sms123ServiceProvider" --tag="config"

Usage

This package provides the facade named Sms123Facade. It contains 3 methods with examples below

Sms123Facade::sendSms($contactNumber, $messageContent, $referenceId); // send sms
Sms123Facade::addTemplate($templateTitle, $messageContent, $referenceId); // add template
Sms123Facade::getBalance(); // get balance 

Error Handling

This package provides 2 exception classes

CredentialsException; // when credentials are missing
SmsApiException; // something went wrong when calling sms123 API

Logging

When debug mode is on. This package will log every API call into ../storage/logs/sms123.log

Testing

For now, there are no tests included in this package.

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

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

Credits

License

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

Laravel Package Boilerplate

This package was generated using the Laravel Package Boilerplate.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-02-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固