yansongda/pay

可能是我用过的最优雅的 Alipay/WeChat/Douyin/Unipay/江苏银行 的支付 SDK 扩展包了

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 12 minutes ago
Added to GitGenius on September 12th, 2026
Created on August 15th, 2017
Open Issues & Pull Requests: 6 (+0)
GitHub issues: Enabled
Number of forks: 1,052
Total Stargazers: 5,367 (+0)
Total Subscribers: 153 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 15.3 hours
Mean response time: 108.7 days
90th percentile: 414.0 days
Tracked items: 86

Most active contributors

Sign in to see contributor activity.

How this project is maintained

Around half of the issues opened in the past year never receive a reply. Only 13% of issues opened in the past year have been closed. Three people close 94% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 3
New in 7 days: 1
Closed in 7 days: 23
Avg open age: 709 days
Stale 30+ days: 2
Stale 90+ days: 2

Recent activity

Opened in 7 days: 1
Closed in 7 days: 20
Comments in 7 days: 0
Events in 7 days: 0

Top labels

No label distribution available yet.

Detailed Description

Pay is a PHP payment SDK extension package that unifies integration with multiple Chinese payment providers including Alipay, WeChat Pay, Douyin, Unipay, and Jiangsu Bank.

The project addresses the fragmentation of payment gateway APIs by providing a single, unified interface for handling payments across multiple providers. Rather than learning each provider's distinct API, developers work with a consistent abstraction layer. The tool handles the complexity of JSON and XML construction, certificate management for WeChat's public certificates, and provider-specific quirks, exposing only clean, intuitive methods. It supports the full feature set of each provider including service provider functionality through a plugin mechanism.

Developers building PHP applications that need to accept payments from Chinese users should consider this tool. It suits projects ranging from web applications to mini-programs that require integration with Alipay, WeChat Pay, or other domestic payment methods. The codebase is organized for clarity and extensibility, allowing developers to add unsupported payment gateways without modifying core code. Framework-specific packages exist for Laravel, Hyperf, and Yii, enabling seamless integration into those ecosystems. The tool adheres to multiple PHP standards including PSR-2, PSR-3, PSR-4, PSR-7, PSR-11, PSR-14, and PSR-18, making it compatible with various frameworks and libraries.

The project maintains active test coverage and code quality checks across its workflow. Development follows consistent coding standards with automated style enforcement. The architecture underwent significant redesign between major versions to improve extensibility and usability, indicating ongoing refinement of the core design. The project includes comprehensive documentation and welcomes community contributions.