PHPackages                             ankio/vpay-sdk - 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. ankio/vpay-sdk

ActiveLibrary[Payment Processing](/categories/payments)

ankio/vpay-sdk
==============

Vpay sdk

30PHP

Since Aug 6Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Vpay-Collection/vpay-sdk)[ Packagist](https://packagist.org/packages/ankio/vpay-sdk)[ RSS](/packages/ankio-vpay-sdk/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

简介
--

[](#简介)

Vpay接入SDK

引入SDK
-----

[](#引入sdk)

### 作为子模块使用

[](#作为子模块使用)

```
git add submodule https://github.com/Vpay-Colloction/vpay-sdk
git  submodule init
git  submodule update --remote
```

### 通过`Composer`调用

[](#通过composer调用)

```
composer require ankio/vpay-sdk
```

- 创建订单

```
$order = new \Ankio\objects\PayCreateObject();
$order->app_item = "商品名称";
$order->appid = $config->id;
$order->param = json_encode(array_merge(arg(),["item"=>$item->toArray()]));
$order->price = $item->item_price;
$order->pay_type =$pay_type;
$order->notify_url = url("api_shop","main","notify");
$order->return_url = url("shop","main","return");
$crateObject->
(new \Ankio\Vpay(new \Ankio\PayConfig($config)))->create();
```

- 关闭订单
- 查询订单状态

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity23

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/26da2042e94e8064a34afb2cb59a2772f48c3517f6bcf281824ef5f04cdd781c?d=identicon)[dreamncn](/maintainers/dreamncn)

---

Top Contributors

[![AnkioTomas](https://avatars.githubusercontent.com/u/155616939?v=4)](https://github.com/AnkioTomas "AnkioTomas (11 commits)")

### Embed Badge

![Health badge](/badges/ankio-vpay-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/ankio-vpay-sdk/health.svg)](https://phpackages.com/packages/ankio-vpay-sdk)
```

###  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)
