PHPackages                             shoudian/alisms - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. shoudian/alisms

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

shoudian/alisms
===============

阿里大于的短信接口

064PHP

Since Apr 27Pushed 8y agoCompare

[ Source](https://github.com/shoudian/alisms)[ Packagist](https://packagist.org/packages/shoudian/alisms)[ RSS](/packages/shoudian-alisms/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

阿里大于的短信扩展
=========

[](#阿里大于的短信扩展)

描述
--

[](#描述)

阿里大于的短信扩展

附上:

项目GitHub地址:[https://github.com/shoudian/alisms.git](https://github.com/shoudian/alisms.git "项目Git地址")

安装PhalApi2-JWT
--------------

[](#安装phalapi2-jwt)

在项目的composer.json文件中，添加：

```
{
    "require": {
        "shoudian/alisms": "dev-master"
    }
}

```

配置好后，执行composer update更新操作即可。

配置文件
----

[](#配置文件)

我们需要在 **./config/app.php** 配置文件中追加以下配置：

```
    /**
     * 扩展类库 - 阿里云短信接口配置参数
     */
	'alisms'=>array(
		'accessKeyId'=>'LTAI29s44dxfqxYY',
		'accessKeySecret'=>'ZW6cPTXGZp4ATVaC5WaWL7GCTip8FK',
		'SignName'=>'商呼',
		'charset'=>'UTF-8',
    ),

```

入门使用
----

[](#入门使用)

初始化PhalApi2-JWT,在config/di.php中加入如下代码

```

//阿里云短信扩展
$di->alisms = new \Shoudian\AliSms\Lite();

```

常用基础操作(具体API可以查阅代码中src/Lite.php)

```
// 发送短信
\PhalApi\DI()->alisms->sendSms($config,$mobile,$tplId,$tplParam);

```

**如果大家有更好的建议可以私聊或加入到PhalApi大家庭中前来一同维护PhalApi****注:笔者能力有限有说的不对的地方希望大家能够指出,也希望多多交流!**

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/9349b61de6028b7b2029e3eee3f279dd53c2d35b382b1d6a72cca32a593df1a6?d=identicon)[shoudian](/maintainers/shoudian)

### Embed Badge

![Health badge](/badges/shoudian-alisms/health.svg)

```
[![Health](https://phpackages.com/badges/shoudian-alisms/health.svg)](https://phpackages.com/packages/shoudian-alisms)
```

###  Alternatives

[tijsverkoyen/css-to-inline-styles

CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.

5.8k505.3M227](/packages/tijsverkoyen-css-to-inline-styles)[minishlink/web-push

Web Push library for PHP

1.9k12.0M53](/packages/minishlink-web-push)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[spatie/url-signer

Generate a url with an expiration date and signature to prevent unauthorized access

4422.3M16](/packages/spatie-url-signer)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
