PHPackages                             softbread/alidayu-php-sdk - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. softbread/alidayu-php-sdk

ActiveLibaray[HTTP &amp; Networking](/categories/http)

softbread/alidayu-php-sdk
=========================

Provides an implelmentation of Ali Dayu SMS SDK that uses Guzzle 6 and Composer

1.0.1(9y ago)067Apache License Version 2.0PHPPHP &gt;=5.5.0

Since Sep 7Pushed 9y ago1 watchersCompare

[ Source](https://github.com/softbread/alidayu-php-sdk)[ Packagist](https://packagist.org/packages/softbread/alidayu-php-sdk)[ RSS](/packages/softbread-alidayu-php-sdk/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

alidayu-php-sdk
===============

[](#alidayu-php-sdk)

This is a PHP SDK for Ali Dayu based on Guzzle 6.

This project is inspired by another PHP curl reversion for Ali Dayu --

一个简单的阿里大于短信发送的PHP SDK。如果项目已经有composer, 安装使用就更简单了。 本SDK是因为本人看到  项目而受到启发, 然后决定为composer重写。 写得很赶, 很多东西没有按正规的composer project来写, 欢迎pull 或者 fork

\##1. Pre-Request

- Composer
- PHP5.5+

\##2. Install

`composer require softbread/alidayu-php-sdk:dev-master`

\##3. Typical Usage

\###a. Use setters:

```
$sendSms = new Softbread\AlidayuSdk\AliSms;
$sendSms->setEnv(false); // use sandbox or not
$sendSms->setKey('api_key'); // set API key
$sendSms->setSecret('api_secret'); // set API secret
$sendSms->setSmsSign('sms_free_sign'); // set free sign in SMS content
$sendSms->setTemplateParams([
  'param1' => 'var1',
  'param2' => 'var2',
]); // set template params
$sendSms->setTemplate('template_id'); // set template ID
$sendSms->setSmsMobile('13000000000'); // set mobile number
$sendSms->send();

```

\###b. Use callable function for easier dependency injection

```
$sendSms = new Softbread\AlidayuSdk\AliSms([
    'env'    => false,
    'key'    => 'api_key',
    'secret' => 'api_secret',
]); // inject config as array

$sendSms->send(
    '13000000000',  // mobile number
    'sms_free_sign' , // free sign in SMS content
    'template_id',  // template ID
    [
      'param1' => 'var1',
      'param2' => 'var2',
    ]  // template params
);

```

\##4. To-do

- Add Voice-Text message
- Add unit tests
- Improve exception detection and handling

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~1 days

Total

2

Last Release

3530d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c577baf4cc2d305df5f0693af415556d671b98f3598005caec5caf33676b478f?d=identicon)[softbread](/maintainers/softbread)

---

Top Contributors

[![softbread](https://avatars.githubusercontent.com/u/685268?v=4)](https://github.com/softbread "softbread (13 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/softbread-alidayu-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/softbread-alidayu-php-sdk/health.svg)](https://phpackages.com/packages/softbread-alidayu-php-sdk)
```

###  Alternatives

[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[omniphx/forrest

A Laravel library for Salesforce

2724.4M8](/packages/omniphx-forrest)[akamai-open/edgegrid-client

Implements the Akamai {OPEN} EdgeGrid Authentication specified by https://developer.akamai.com/introduction/Client\_Auth.html

482.5M6](/packages/akamai-open-edgegrid-client)[muhammadhuzaifa/telescope-guzzle-watcher

Telescope Guzzle Watcher provide a custom watcher for intercepting http requests made via guzzlehttp/guzzle php library. The package uses the on\_stats request option for extracting the request/response data. The watcher intercept and log the request into the Laravel Telescope HTTP Client Watcher.

98239.8k1](/packages/muhammadhuzaifa-telescope-guzzle-watcher)[onesignal/onesignal-php-api

A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com

34170.2k2](/packages/onesignal-onesignal-php-api)[ory/hydra-client-php

Documentation for all of Ory Hydra's APIs.

1710.8k](/packages/ory-hydra-client-php)

PHPackages © 2026

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