PHPackages                             xhat/payjs - 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. [API Development](/categories/api)
4. /
5. xhat/payjs

ActiveLibrary[API Development](/categories/api)

xhat/payjs
==========

本项目是基于 PAYJS 的 API 开发的 Composer Package，可直接用于生产环境 https://payjs.cn

1.5.0(5y ago)787.0k↑25%10[1 issues](https://github.com/xhat/payjs/issues)MITPHP

Since Sep 16Pushed 5y ago1 watchersCompare

[ Source](https://github.com/xhat/payjs)[ Packagist](https://packagist.org/packages/xhat/payjs)[ Fund](https://payjs.cn/sponsor/dajjxz)[ RSS](/packages/xhat-payjs/feed)WikiDiscussions master Synced today

READMEChangelog (9)DependenciesVersions (10)Used By (0)

 [![](https://camo.githubusercontent.com/9a6971049b10512b626be6165e3d5dde5112f8db2403317e2746e30538c6da25/68747470733a2f2f7061796a732e636e2f7374617469632f696d616765732f6c6f676f2e706e67)](https://camo.githubusercontent.com/9a6971049b10512b626be6165e3d5dde5112f8db2403317e2746e30538c6da25/68747470733a2f2f7061796a732e636e2f7374617469632f696d616765732f6c6f676f2e706e67)

PAYJS Wechat Payment Composer Package
-------------------------------------

[](#payjs-wechat-payment-composer-package)

 [ ![Latest Stable Version](https://camo.githubusercontent.com/89d8100705a07613412573249fed5b9bb47215e9eb9f5a228ac490ae2684513f/68747470733a2f2f706f7365722e707567782e6f72672f786861742f7061796a732f762f737461626c652e706e67) ](https://packagist.org/packages/xhat/payjs) [ ![Total Downloads](https://camo.githubusercontent.com/2eb84a2ef85ff3e22537210a2cacf9afe8902fa9a65d4d02d5a09c646414004a/68747470733a2f2f706f7365722e707567782e6f72672f786861742f7061796a732f646f776e6c6f6164732e706e67) ](https://packagist.org/packages/xhat/payjs) [ ![License](https://camo.githubusercontent.com/3c8ef57d9df0e9272722206b3dd86c7551f7542203fb5c97d8edfeae353e7263/68747470733a2f2f706f7365722e707567782e6f72672f786861742f7061796a732f6c6963656e73652e706e67) ](https://packagist.org/packages/xhat/payjs)

简介
--

[](#简介)

本项目是基于 PAYJS 的 API 开发的 Composer Package，可直接用于生产环境

PAYJS 针对个人主体提供微信支付接入能力，是经过检验的正规、安全、可靠的微信支付个人开发接口

其它版本: [PAYJS Laravel 开发包](https://github.com/xhat/payjs-laravel)

安装
--

[](#安装)

通过 Composer 安装

```
$ composer require xhat/payjs
```

使用方法
----

[](#使用方法)

首先在业务中引入

```
