PHPackages                             oyta/pospay - 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. oyta/pospay

ActiveLibrary[Payment Processing](/categories/payments)

oyta/pospay
===========

Oyta PHP支付插件

v1.0.1(2y ago)03MITPHP

Since Sep 8Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Oyta102/pospay)[ Packagist](https://packagist.org/packages/oyta/pospay)[ RSS](/packages/oyta-pospay/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (3)Used By (0)

Oyta PHP支付插件
============

[](#oyta-php支付插件)

安装
--

[](#安装)

- composer require oyta/pospay

使用方法
----

[](#使用方法)

```
use Oyta\Pospay\Charge; //引入方法

//设置密钥  密钥使用Rsa2
$pubkey='';
$prekey='';
Charge::setkey($pubkey,$prekey);

//发起支付
$data = [
    'appid' =>  'xxx', //商户APPID
    'secret'    => 'xxxxx', //商户密钥
    'order_no'  => 'xxxxx',   //订单号
    'amount'    => 0.01, //金额 最多两位小数
    'paytype'   => 'ALIPAY', //支付方式 支付宝扫码(ALIPAY)  云闪付扫码(YLPAY)  微信公众号(WXSJAPI)  支付宝服务窗(ALIJSAPI)
    'userid'    => 'xxxx',支付宝userid (使用支付宝服务窗支付必带)
    'appid'     => 'xxx',微信APPID (使用微信公众号支付必带)
    'openid'    => 'xxx',微信openid (使用微信公众号支付必带)
    'notify_url'=> 'xxxxxx' //异步通知地址
];
$res = Charge::pay($data);
dump($res);

//支付回调

$data = $_POST['charge'];
$verify = Charge::verify($data);  //数据验签
// ...你的功能代码
$result = [
    'code'=>2000,
    'msg'=>'SUCCESS'
    ];
echo json_encode($result);
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

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

Total

2

Last Release

893d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b81aaa80a282dbffc749b1918992b194ba520383a6e1dd563fcedbc8595b4f01?d=identicon)[oyta](/maintainers/oyta)

---

Top Contributors

[![Oyta102](https://avatars.githubusercontent.com/u/27719053?v=4)](https://github.com/Oyta102 "Oyta102 (3 commits)")

### Embed Badge

![Health badge](/badges/oyta-pospay/health.svg)

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

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

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