PHPackages                             atishoo/paylib - 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. atishoo/paylib

ActiveLibrary[Payment Processing](/categories/payments)

atishoo/paylib
==============

支付合集库

1.0(8y ago)028MITPHPPHP &gt;=5.5

Since Aug 29Pushed 8y ago1 watchersCompare

[ Source](https://github.com/atishoo/paylib)[ Packagist](https://packagist.org/packages/atishoo/paylib)[ RSS](/packages/atishoo-paylib/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (2)Used By (0)

paylib
======

[](#paylib)

自己使用过的支付接口合集

###### 下面是一些简单的使用说明

[](#下面是一些简单的使用说明)

支付宝使用说明
-------

[](#支付宝使用说明)

1. 引入命名空间

```
use Atipay\alipay\Alipay;
```

2. 调用方法体

```
$config = ['partner'=>'商户号','private_key'=>'私钥','public_key'=>'公钥','input_charset'=>'字符集','sign_type'=>'签名类型','service','cacert','transport'];
$alipay = new Alipay($config);
```

3. 创建订单并签名

    ```
    $data = array(
        'notify_url'=>'"'.'这里写通知地址'.'"',
        'out_trade_no'=>'"'.'订单编号'.'"',
        'subject'=>'"'.'订单标题'.'"',
        'total_fee'=>'"'.'总金额，单位元'.'"',
        'body'=>'"'.'订单描述'.'"',
        'it_b_pay'=>'"'.'过期时间'.'m"'
        );

    // 将post接收到的数组所有元素，按照“参数=参数值”的模式用“&”字符拼接成字符串。
    $data = $alipay->createLinkstring($data);

    // 将待签名字符串使用私钥签名,且做urlencode. 注意：请求到支付宝只需要做一次urlencode.
    $rsa_sign = urlencode($alipay->rsaSign($data));

    // 把签名得到的sign和签名类型sign_type拼接在待签名字符串后面。
    $data = $data.'&sign='.'"'.$rsa_sign.'"'.'&sign_type='.'"'.alipay_sign_type.'"';
    ```

微信支付使用说明
--------

[](#微信支付使用说明)

1. 引入命名空间

```
use Atipay\wxpay\WxPayUnifiedOrder;
```

2. 实例化数据对象

```
$wxdata = new WxPayUnifiedOrder();
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

3227d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7723403?v=4)[atishoo](/maintainers/atishoo)[@atishoo](https://github.com/atishoo)

---

Top Contributors

[![atishoo](https://avatars.githubusercontent.com/u/7723403?v=4)](https://github.com/atishoo "atishoo (15 commits)")

### Embed Badge

![Health badge](/badges/atishoo-paylib/health.svg)

```
[![Health](https://phpackages.com/badges/atishoo-paylib/health.svg)](https://phpackages.com/packages/atishoo-paylib)
```

###  Alternatives

[omnipay/coinbase

Coinbase driver for the Omnipay payment processing library

18570.2k1](/packages/omnipay-coinbase)

PHPackages © 2026

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