dedemao/alipay
一个PHP文件搞定支付宝支付系列,包括电脑网站支付,手机网站支付,现金红包、消费红包、扫码支付,JSAPI支付、单笔转账到支付宝账户、交易结算(分账、分润)、网页授权获取用户信息等 observed · 2026-08-28
Health v2 · maintenance only
48/100
- Activity 36
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3204
- days_rel: n/a
- days_push: 384
- n_releases_24m: 0
Adoption not part of the score
1392 stars · 642 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A collection of standalone single-file PHP scripts (~200 lines each) for integrating Alipay payments, covering PC and mobile web payments, QR/barcode payments, JSAPI, refunds, transfers, profit sharing, red envelopes, and OAuth user authorization. Each file runs independently with no external dependencies, requiring only PHP 5+ with CURL and SSL.
Use cases
- accept alipay payments on a php website
- integrate alipay qr code payment without composer dependencies
- add alipay wap payment to a mobile site
- send cash red packets via alipay
- transfer money to an alipay account from php
- implement alipay refund in a single php file
- get alipay user info via web authorization
- split payments and settle transactions with alipay
When to choose
- you need a dead-simple, dependency-free Alipay integration in PHP
- you only need one or two specific Alipay payment flows
- you want readable example code to learn the Alipay API quickly
When to avoid
- you use a framework and prefer a maintained SDK with composer packages and tests
- you need payment gateways beyond Alipay/WeChat
- you require enterprise-grade error handling, logging, or PSR compliance
Facets
library · maturity active
sdk http-client developer-tools fintech e-commerce web-development backend php self-hosted alipay payment-integration single-file china red-envelope refund transfer web-server
2 sources
- readme: https://github.com/dedemao/alipay · fetched 2026-08-28 · c353bba12c32
- homepage: https://www.dedemao.com/alipay/demo.html · fetched 2026-08-29 · 84977f148ee8
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| dedemao/alipay | main | 48 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem