2017 © Pedro Peláez
 

library yii2-igt

The iGetui SDK integration for the Yii2 framework and PHP 5.4

image

davidxu/yii2-igt

The iGetui SDK integration for the Yii2 framework and PHP 5.4

  • Saturday, December 17, 2016
  • by davidxuuts
  • Repository
  • 1 Watchers
  • 2 Stars
  • 58 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 5 Versions
  • 2 % Grown

The README.md

Getui Library with Psr-4

Based on Getui SDK (PHP) 4.0.1.0, (*1)

Functions

  1. Silent transmission message to single user
  2. Normal transmission message to single user
  3. Normal transmission message to all users

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

php composer.phar require davidxu/yii2-igt

or add, (*4)

"davidxu/yii2-igt": "*"

to the require section of your composer.json file., (*5)

Usage

Once the extension is installed, simply use it in your code by :, (*6)

use davidxu\igt\Getui;
class PushController extends Controller
{
    /**
     * Send normal transmission message to all app users
     * Will play a sound and a badge (1) will display
     * 
     *   $content = [
     *       'payloadTitle' => 'transmission Title',
     *       'payloadContet' => 'transmission content here',
     *   ];
     *    $payload = Json::encode($content);
     *    $alertTitle = 'Attention Please';
     *    $alert_body = 'Alert Body Here, you have a unread message';
     * 
     * @param mixed $content
     * @param string $alertBody
     * @param string $alertTitle
     * @return mixed|null
     *
     * Sample of return result
     * {
     *    "result": "ok",
     *    "contentId": "OSA-1031_tAvRLPhf5Q9d2IAADSKOn9"
     *  }
     *
     */
    public function actionSystemMsg($content, $alertBody, $alertTitle)
    {
        $getui = new Getui();
        $getui->appId = '<appId>';
        $getui->appkey = '<appKey'>;
        $getui->$masterSecret = '<masterSecret'>;
        $response = $getui->pushTransmissionAlertToApp($content, $alertBody, $alertTitle);
        return $response;
    }

}

Remark

Please refer to Getui official documentation and Apple Local and Remote Notification Programming Guide, (*7)

This package should can be used for other frameworks also., (*8)

Any other question please contact me at david.xu.uts@163.com, (*9)

The Versions

17/12 2016

dev-master

9999999-dev

The iGetui SDK integration for the Yii2 framework and PHP 5.4

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by David Xu

extension yii2 getui igt

17/12 2016

1.0.3

1.0.3.0

The iGetui SDK integration for the Yii2 framework and PHP 5.4

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by David Xu

extension yii2 getui igt

13/11 2016

1.0.2

1.0.2.0

The iGetui SDK integration for the Yii2 framework and PHP 5.4

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by David Xu

extension yii2 getui igt

01/11 2016

1.0.1

1.0.1.0

The iGetui SDK integration for the Yii2 framework and PHP 5.4

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by David Xu

extension yii2 getui igt

31/10 2016

1.0.0

1.0.0.0

The iGetui SDK integration for the Yii2 framework and PHP 5.5

  Sources   Download

MIT

The Requires

 

by David Xu

extension yii2 getui igt