Skip to content

Commit

Permalink
fix: 移除废弃的网关
Browse files Browse the repository at this point in the history
  • Loading branch information
overtrue committed Apr 18, 2024
1 parent d71d32f commit 44034b8
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 161 deletions.
15 changes: 0 additions & 15 deletions .travis.yml

This file was deleted.

33 changes: 14 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<p align="center">:calling: 一款满足你的多种发送需求的短信发送组件</p>

<p align="center">
<a href="https://travis-ci.org/overtrue/easy-sms"><img src="https://travis-ci.org/overtrue/easy-sms.svg?branch=master" alt="Build Status"></a>
<a href="https://packagist.org/packages/overtrue/easy-sms"><img src="https://poser.pugx.org/overtrue/easy-sms/v/stable.svg" alt="Latest Stable Version"></a>
<a href="https://packagist.org/packages/overtrue/easy-sms"><img src="https://poser.pugx.org/overtrue/easy-sms/v/unstable.svg" alt="Latest Unstable Version"></a>
<a href="https://scrutinizer-ci.com/g/overtrue/easy-sms/?branch=master"><img src="https://scrutinizer-ci.com/g/overtrue/easy-sms/badges/coverage.png?b=master" alt="Code Coverage"></a>
Expand All @@ -15,7 +14,6 @@
<a href="https://github.com/sponsors/overtrue"><img src="https://github.com/overtrue/overtrue/blob/master/sponsor-me-button-s.svg?raw=true" alt="Sponsor me" style="max-width: 100%;"></a>
</p>


## 特点

1. 支持目前市面多家服务商
Expand Down Expand Up @@ -45,7 +43,6 @@
- [创蓝云智](https://www.chuanglan.com/)
- [融云](http://www.rongcloud.cn)
- [天毅无线](http://www.85hu.com/)
- [阿凡达数据](http://www.avatardata.cn/)
- [华为云](https://www.huaweicloud.com/product/msgsms.html)
- [网易云信](https://yunxin.163.com/sms)
- [云之讯](https://www.ucpaas.com/index.html)
Expand All @@ -69,14 +66,14 @@
## 安装

```shell
$ composer require "overtrue/easy-sms"
composer require "overtrue/easy-sms"
```

**For Laravel notification**

如果你喜欢使用 [Laravel Notification](https://laravel.com/docs/5.8/notifications), 可以考虑直接使用朋友封装的拓展包:

https://github.com/yl/easysms-notification-channel
<https://github.com/yl/easysms-notification-channel>

## 使用

Expand Down Expand Up @@ -204,6 +201,7 @@ $easySms->send(13188888888, [
## 返回值

由于使用多网关发送,所以返回值为一个数组,结构如下:

```php
[
'yunpian' => [
Expand Down Expand Up @@ -473,6 +471,7 @@ $easySms->send($phone_number, [
'timestamp' => false, // 是否启用时间戳
],
```

### [百度云](https://cloud.baidu.com/)

短信内容使用 `template` + `data`
Expand Down Expand Up @@ -535,6 +534,7 @@ $easySms->send($phone_number, [
'channel' => \Overtrue\EasySms\Gateways\Chuanglanv1Gateway::CHANNEL_NORMAL_CODE,
],
```

发送示例:

```php
Expand All @@ -553,6 +553,7 @@ $easySms->send(18888888888, [
'channel' => \Overtrue\EasySms\Gateways\Chuanglanv1Gateway::CHANNEL_VARIABLE_CODE,
],
```

发送示例:

```php
Expand Down Expand Up @@ -611,7 +612,6 @@ $easySms->send(18888888888, [
],
```


### [腾讯云 SMS](https://cloud.tencent.com/product/sms)

短信内容使用 `template` + `data`
Expand All @@ -636,16 +636,6 @@ $easySms->send(18888888888, [
]);
```

### [阿凡达数据](http://www.avatardata.cn/)

短信内容使用 `template` + `data`

```php
'avatardata' => [
'app_key' => '', // APP KEY
],
```

### [华为云 SMS](https://www.huaweicloud.com/product/msgsms.html)

短信内容使用 `template` + `data`
Expand Down Expand Up @@ -710,6 +700,7 @@ $easySms->send(18888888888, [
],
]);
```

通知模板短信

```php
Expand All @@ -722,7 +713,6 @@ $easySms->send(18888888888, [
]);
```


### [云之讯](https://www.ucpaas.com/index.html)

短信内容使用 `template` + `data`
Expand Down Expand Up @@ -783,7 +773,9 @@ $easySms->send(18888888888, [
],
]);
```

### [Ucloud](https://www.ucloud.cn/)

短信使用 `template` + `data`

```php
Expand All @@ -806,8 +798,8 @@ $easySms->send(18888888888, [

```


### [短信宝](http://www.smsbao.com/)

短信使用 `content`

```php
Expand All @@ -825,6 +817,7 @@ $easySms->send(18888888888, [
```

### [摩杜云](https://www.moduyun.com/)

短信使用 `template` + `data`

```php
Expand Down Expand Up @@ -952,6 +945,7 @@ $easySms->send(18888888888, [
```

发送示例:

```php
$easySms->send(18888888888, [
'content' => '您的验证码为: 6379',
Expand Down Expand Up @@ -984,6 +978,7 @@ $easySms->send(18888888888, [
```

发送示例2:

```php
$easySms->send(18888888888, [
'template' => 'SMS_123456', // 模板ID
Expand Down Expand Up @@ -1017,6 +1012,7 @@ $easySms->send(18888888888, [
'content' => '您的验证码为: 6379',
]);
```

## :heart: 支持我

[![Sponsor me](https://github.com/overtrue/overtrue/blob/master/sponsor-me.svg?raw=true)](https://github.com/sponsors/overtrue)
Expand All @@ -1029,7 +1025,6 @@ Many thanks to Jetbrains for kindly providing a license for me to work on this a

[![](https://resources.jetbrains.com/storage/products/company/brand/logos/jb_beam.svg)](https://www.jetbrains.com/?from=https://github.com/overtrue)


## PHP 扩展包开发

> 想知道如何从零开始构建 PHP 扩展包?
Expand Down
60 changes: 0 additions & 60 deletions src/Gateways/AvatardataGateway.php

This file was deleted.

67 changes: 0 additions & 67 deletions tests/Gateways/AvatardataGatewayTest.php

This file was deleted.

0 comments on commit 44034b8

Please sign in to comment.