PHPackages                             naka1205/alipay-php - 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. [Payment Processing](/categories/payments)
4. /
5. naka1205/alipay-php

ActiveLibrary[Payment Processing](/categories/payments)

naka1205/alipay-php
===================

Alipay SDK For PHP

v1.7(6y ago)115MITPHPPHP &gt;=5.6

Since Jun 2Pushed 6y ago1 watchersCompare

[ Source](https://github.com/naka1205/alipay-php)[ Packagist](https://packagist.org/packages/naka1205/alipay-php)[ RSS](/packages/naka1205-alipay-php/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (9)Used By (0)

alipay-php
==========

[](#alipay-php)

### 用户授权

[](#用户授权)

```
use Alipay\Client;

$auth_code = $_GET['auth_code'];
$config = [
    'appid'       =>  'app_id',
    'gateway'     =>  'https://openapi.alipay.com/gateway.do',
    'type'        =>  'sign_type',
    'public'      =>  'public_key',
    'private'     =>  'private_key'
];
$aop = new Client($config);
$response = $aop->getToken($auth_code);
var_dump($response);
```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

Total

8

Last Release

2220d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/31daa787ddfaddc2a730ad5ea28e19f1da17287e45251b4292d64c7feee71531?d=identicon)[naka1205](/maintainers/naka1205)

---

Top Contributors

[![naka1205](https://avatars.githubusercontent.com/u/20264902?v=4)](https://github.com/naka1205 "naka1205 (9 commits)")

### Embed Badge

![Health badge](/badges/naka1205-alipay-php/health.svg)

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

###  Alternatives

[msilabs/bkash

bKash Payment Gateway API for Laravel Framework.

181.1k](/packages/msilabs-bkash)

PHPackages © 2026

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