yansongda/pay
A popular PHP payment library for Laravel and other frameworks, integrating Alipay and WeChat Pay with a clean API. Supports common payment flows, refunds, queries, callbacks/notifications, and flexible configuration for multi-app and sandbox use.
Pay::douyin()->mini()."This package lets us launch in China 10x faster by eliminating custom payment SDK development. With 5.3K stars and MIT licensing, it’s the de facto standard for Alipay/WeChat/UnionPay—used by [insert competitor or benchmark].
Ask: ‘Should we prioritize this for our Q3 China expansion?’"
"This is the most maintainable way to handle payments in PHP. Here’s why:
Pay::alipay()->web() vs. Pay::wechat()->mini()—consistent patterns across gateways.ProviderInterface—no core changes.PayEvent::PAYMENT_SUCCESS).Trade-offs:
Proposal:
Blockers to address:
vault or AWS KMS).Guzzle middleware).How can I help you explore Laravel packages today?