fk / yii2-pingpp
Ping++ with yii2 wrapper
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/fk/yii2-pingpp
Requires
- php: >=5.4
- pingplusplus/pingpp-php: 2.1.5
This package is not auto-updated.
Last update: 2025-10-12 01:29:18 UTC
README
This is just a yii2 wrapper for Ping++(Ping Plus Plus)
Usage
Configure
# maim-local.php return [ // other config ... 'components' => [ // other components 'pingpp' => [ 'class' => 'fk\pingpp\Component', 'apiKey' => 'sk_test_SCiTC8sd8j2lk34bP', 'appId' => 'app_Cu1azP0y5Gst2mx03Y', ], // other components ] // other config ... ]
Call
Yii::$app->pingpp->charge(); Yii::$app->pingpp->transfer();
Especially
Many params can be passed by calling setXXX()
For Example
Yii::$app->pingpp ->setClientIp('127.0.0.1') ->setChannel('wx_pub') ->setApiKey('sk_test_123ksdfj') ->charge($orderNo);
For more details, please refer to fk\pingpp\Component