PHPackages                             xibusuper/alipay-pocket-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. [DevOps &amp; Deployment](/categories/devops)
4. /
5. xibusuper/alipay-pocket-php-sdk

ActiveLibrary[DevOps &amp; Deployment](/categories/devops)

xibusuper/alipay-pocket-php-sdk
===============================

支付宝服务窗平台SDK

2.0.0(5y ago)011MITPHPPHP &gt;=5.6.0

Since Dec 15Pushed 5y agoCompare

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

READMEChangelog (2)DependenciesVersions (3)Used By (0)

\#alipay-pocket-sdk #支付宝钱包服务窗平台SDK ##使用帮助 $options = array( 'app\_id' =&gt; "201408008041",//填写支付宝服务窗app\_id '\_cache\_base\_path' =&gt; ''; //填写缓存文件路径 ) $pocket = new AlipayPocket($options); $service = $AlipayPocket-&gt;getService();

```
$pocket->rsaCheck(); //收到请求，先验证签名

if ($service == "alipay.service.check") {
   $pocket->verifygw(); //验证网关请求
} else if ($service == "alipay.mobile.public.message.notify") {
   //处理收到的消息

   $alipaypocket_user_id = $pocket->getFromUserId();
   $content = $pocket->getContent();
   $MsgType = $pocket->getMsgType();
   $EventType = $pocket->getEventType();

   if ($MsgType == "text") {
       //$this->alipaypocket->log($content);
       $pocket->text("hello world");
   }elseif($MsgType == "event"){
       switch ($EventType) {
           case "follow":   //关注事件
               break;
           case "unfollow": //取消关注
               break;
           case "enter":    //进入服务窗
               break;
           case "click":    //点击事件
               break;
           default :
               break;
       }
   }
}

```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% 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 ~0 days

Total

2

Last Release

1974d ago

Major Versions

1.0.0 → 2.0.02020-12-15

### Community

Maintainers

![](https://www.gravatar.com/avatar/0b96871d306153fdff2026f4f55c258295a834e097874df63d061e095b469088?d=identicon)[xibusuper](/maintainers/xibusuper)

---

Top Contributors

[![xibusuper](https://avatars.githubusercontent.com/u/22129256?v=4)](https://github.com/xibusuper "xibusuper (3 commits)")[![justsolive](https://avatars.githubusercontent.com/u/49673277?v=4)](https://github.com/justsolive "justsolive (1 commits)")

---

Tags

serveralipaywindow

### Embed Badge

![Health badge](/badges/xibusuper-alipay-pocket-php-sdk/health.svg)

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

###  Alternatives

[spatie/laravel-webhook-server

Send webhooks in Laravel apps

1.1k8.8M22](/packages/spatie-laravel-webhook-server)[pragmarx/health

Laravel Server &amp; App Health Monitor and Notifier

2.0k1.0M2](/packages/pragmarx-health)[felixfbecker/language-server-protocol

PHP classes for the Language Server Protocol

22476.7M6](/packages/felixfbecker-language-server-protocol)[clue/socket-raw

Simple and lightweight OOP wrapper for PHP's low-level sockets extension (ext-sockets).

35111.1M48](/packages/clue-socket-raw)[voryx/thruway

Thruway WAMP router core

6771.0M17](/packages/voryx-thruway)[php-mcp/server

PHP SDK for building Model Context Protocol (MCP) servers - Create MCP tools, resources, and prompts

828280.5k25](/packages/php-mcp-server)

PHPackages © 2026

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