PHPackages                             vivlong/phalapi-xsms - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. vivlong/phalapi-xsms

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

vivlong/phalapi-xsms
====================

PhalApi 2.x 扩展类库：支持AliyunSMS的推送扩展。

020PHP

Since Aug 19Pushed 1y ago1 watchersCompare

[ Source](https://github.com/vivlong/phalapi-xsms)[ Packagist](https://packagist.org/packages/vivlong/phalapi-xsms)[ RSS](/packages/vivlong-phalapi-xsms/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

PhalApi 2.x 的第三方短信推送扩展
======================

[](#phalapi-2x-的第三方短信推送扩展)

PhalApi 2.x 扩展类库：支持AliyunSMS的推送扩展。

安装和配置
-----

[](#安装和配置)

修改项目下的composer.json文件，并添加：

```
    "vivlong/phalapi-xsms":"dev-master"

```

然后执行`composer update`。

安装成功后，添加以下配置到/path/to/phalapi/config/app.php文件：

```
    /**
     * 相关配置
     */
    'Xsms' =>  array(
        'aliyun' => array(
            'accessKeyId'       => '',
            'accessKeySecret'   => '',
            'regionId'          => 'cn-hangzhou',
        ),
    ),
```

并根据自己的情况修改填充。

注册
--

[](#注册)

在/path/to/phalapi/config/di.php文件中，注册：

```
$di->xSms = function() {
        return new \PhalApi\Xsms\Lite();
};
```

使用
--

[](#使用)

使用方式：

```
  \PhalApi\DI()->xSms->sendSms();
```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity17

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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/63cebb214330833e8bea309160266105934daf5e70e20db7ae58a6484443f37c?d=identicon)[vivlong](/maintainers/vivlong)

---

Top Contributors

[![vivlong](https://avatars.githubusercontent.com/u/3961154?v=4)](https://github.com/vivlong "vivlong (9 commits)")

### Embed Badge

![Health badge](/badges/vivlong-phalapi-xsms/health.svg)

```
[![Health](https://phpackages.com/badges/vivlong-phalapi-xsms/health.svg)](https://phpackages.com/packages/vivlong-phalapi-xsms)
```

###  Alternatives

[jaeger/querylist-phantomjs

QueryList Plugin: Use PhantomJS to crawl Javascript dynamically rendered pages.(headless WebKit ) 使用PhantomJS采集JavaScript动态渲染的页面

6124.3k1](/packages/jaeger-querylist-phantomjs)

PHPackages © 2026

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