2017 © Pedro Peláez
 

library yii2-pingpp

Ping++ with yii2 wrapper

image

fk/yii2-pingpp

Ping++ with yii2 wrapper

  • Monday, September 19, 2016
  • by yelfive
  • Repository
  • 1 Watchers
  • 0 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Description

This is just a yii2 wrapper for Ping++(Ping Plus Plus), (*1)

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(), (*2)

For Example, (*3)

    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, (*4)

The Versions

19/09 2016

dev-master

9999999-dev

Ping++ with yii2 wrapper

  Sources   Download

MIT

The Requires

 

by felix

pingpp