PHPackages                             linkworld/alipaysdk-openapi - 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. linkworld/alipaysdk-openapi

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

linkworld/alipaysdk-openapi
===========================

支付宝开放平台v3协议文档，兼容了v2版本sdk的自动引入

2.4.0.5(2y ago)027unlicensePHPPHP ^7.4 || ^8.0

Since Nov 1Pushed 2y agoCompare

[ Source](https://github.com/sholvabai/alipay-sdk-php-all)[ Packagist](https://packagist.org/packages/linkworld/alipaysdk-openapi)[ Docs](https://openapi-generator.tech)[ RSS](/packages/linkworld-alipaysdk-openapi/feed)WikiDiscussions master Synced 3w ago

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

支付宝开放平台服务端SDK FOR PHP
=====================

[](#支付宝开放平台服务端sdk-for-php)

Alipay SDK for PHP SDK可以自动帮您满足能力调用过程中所需的证书校验、加签、验签、发送HTTP请求等非功能性要求。

支付宝目前提供 [v2](v2/README.md)、[v3](v3/README.md) 两个版本SDK，根据您的习惯自由选择。

v2 &amp; v3
-----------

[](#v2--v3)

v2版本将会发起基于v2协议的OpenAPI，v3版本将会发起基于v3协议的OpenAPI。

关于v3协议
------

[](#关于v3协议)

相较于v2协议的支付宝API，主要区别是：

- 使用RESTful设计风格，并通过OpenAPI规范（OAS）描述接口
- 使用JSON作为数据交互的格式，不再使用XML和表单格式
- 简化加验签逻辑，对http报文整体加验签
- 简化加解密、文件上传等规范

更多有关v3协议的内容，可前往 [支付宝开发文档](https://opendocs.alipay.com/open-v3/054kaq) 了解更多。

### 关于OpenAPI规范（OAS）

[](#关于openapi规范oas)

OpenAPI规范（OAS），是定义一个标准的、与具体编程语言无关的RESTful API的规范，您可查阅 [OAS官网](https://www.openapis.org) 了解更多。

利用支付宝提供的OpenAPI描述文件，您可以用代码生成工具来自动生成各种编程语言代码，用自动测试工具进行测试等等。

v3 SDK是基于 [OpenAPI描述文件](v3/api/openapi.yaml) 、使用 [OpenAPI Generator](https://openapi-generator.tech) 生成的。

问题
--

[](#问题)

不管您在使用SDK的过程中遇到任何问题，欢迎前往 [支付宝开放社区](https://forum.alipay.com/mini-app/channel/1100001) 发帖与支付宝工作人员和其他开发者一起交流。

注：为了提高开发者问题的响应时效，github本身的issue功能已关闭，支付宝开放社区中发帖的问题，通常会在2小时内响应。

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity49

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 ~4 days

Total

2

Last Release

961d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1ab64723534215ef8dd76e5bb250ac8eea178f6c8778299bde4dc37dc94359f8?d=identicon)[sholvabai](/maintainers/sholvabai)

---

Top Contributors

[![antopen](https://avatars.githubusercontent.com/u/34638345?v=4)](https://github.com/antopen "antopen (1 commits)")

---

Tags

phpapisdkrestopenapiopenapitoolsopenapi-generator

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/linkworld-alipaysdk-openapi/health.svg)

```
[![Health](https://phpackages.com/badges/linkworld-alipaysdk-openapi/health.svg)](https://phpackages.com/packages/linkworld-alipaysdk-openapi)
```

###  Alternatives

[elasticemail/elasticemail-php

The PHP library for the Elastic Email REST API. This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. To start using this API, you will need your Access Token. Remember to keep it safe.

14107.5k2](/packages/elasticemail-elasticemail-php)[onfido/onfido-php

The Onfido Public API (v3.6)

20183.9k2](/packages/onfido-onfido-php)[ory/hydra-client-php

Documentation for all of Ory Hydra's APIs.

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

PHPackages © 2026

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