PHPackages                             wujingke/pingpp-laravel5-plus - 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. wujingke/pingpp-laravel5-plus

ActiveLibrary[API Development](/categories/api)

wujingke/pingpp-laravel5-plus
=============================

Simple Pingpp wrapper for Laravel 5

04PHP

Since Feb 23Pushed 10y ago1 watchersCompare

[ Source](https://github.com/wujingke/pingpp-laravel5-plus)[ Packagist](https://packagist.org/packages/wujingke/pingpp-laravel5-plus)[ RSS](/packages/wujingke-pingpp-laravel5-plus/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

pingpp-laravel5-plus
====================

[](#pingpp-laravel5-plus)

pingxx基于laravel5的封装

配置方法
====

[](#配置方法)

1. 在`composer.json`里添加如下内容，并运行`composer update`:

```
{
    "require": {
        "wujingke/pingpp-laravel5-plus": "dev-master"
    }
}
```

1. 在`app/config/app.php`文件里的providers变量下添加`JingKe\Pingpp\PingppServiceProvider::class,`
2. 在`app/config/app.php`文件里的aliases变量下添加`'Pingpp' => JingKe\Pingpp\Facades\Pingpp::class,`
3. 运行`php artisan vendor:publish`生成配置文件
4. 修改配置文件里面的2组key
5. 若需回调验证，请填写`pub_key`

使用方法
====

[](#使用方法)

```
use Pingpp;

class SomeClass extends Controller {

    public function someFunction()
    {
    	Pingpp::Charge()->create([
            'order_no'  => '123456789',
		    'amount'    => '100',
		    'app'       => array('id' => 'app_xxxxxxxxxxxxxx'),
		    'channel'   => 'upacp',
		    'currency'  => 'cny',
		    'client_ip' => '127.0.0.1',
		    'subject'   => 'Your Subject',
		    'body'      => 'Your Body'
        ]);
    }
}
```

```
use Pingpp;

class SomeClass extends Controller {

    public function someFunction()
    {
    	Pingpp::RedEnvelope()->create([
            'order_no'  => '123456789',
	        'app'       => array('id' => 'APP_ID'),
	        'channel'   => 'wx_pub',
	        'amount'    => 100,
	        'currency'  => 'cny',
	        'subject'   => 'Your Subject',
	        'body'      => 'Your Body',
	        'extra'     => array(
	            'nick_name' => 'Nick Name',
	            'send_name' => 'Send Name'
	        ),
	        'recipient'   => 'Openid',
	        'description' => 'Your Description'
        ]);
    }
}
```

错误调用
====

[](#错误调用)

当Pingpp调用发生错误的时候会`return false`，此时调用`Pingpp::getError();`返回具体错误内容。

接收 Webhooks 通知
==============

[](#接收-webhooks-通知)

直接调用`Pingpp::notice()`，若验证成功,会返回通知的`array`结构数据,若失败直接弹出错误回Pingpp。如果需要记录错误，请自行监听系统错误，详见[Errors &amp; Logging](https://laravel.com/docs/5.1/errors)

其他使用方法见官方文档[PingPlusPlus](https://github.com/PingPlusPlus/pingpp-php)

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 86.7% 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://avatars.githubusercontent.com/u/565778?v=4)[wujingke](/maintainers/wujingke)[@wujingke](https://github.com/wujingke)

---

Top Contributors

[![lyt8384](https://avatars.githubusercontent.com/u/3069157?v=4)](https://github.com/lyt8384 "lyt8384 (13 commits)")[![wujingke](https://avatars.githubusercontent.com/u/565778?v=4)](https://github.com/wujingke "wujingke (2 commits)")

### Embed Badge

![Health badge](/badges/wujingke-pingpp-laravel5-plus/health.svg)

```
[![Health](https://phpackages.com/badges/wujingke-pingpp-laravel5-plus/health.svg)](https://phpackages.com/packages/wujingke-pingpp-laravel5-plus)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

94452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

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