Download the PHP package sunmoon/getui without Composer

On this page you can find all versions of the php package sunmoon/getui. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package getui

yii2-igetui

yii2个推

安装:

配置:

'components' => [
'getui'=>[
'class'=>'sunmoon\getui\src\Push',
'appId' => 'Utt9VAqlZw9LrrDUfNGPc3', //你的APPID
'appKey' => 'f1m9HzIL6D9gTXAkHsvuw2', //你的APPKEY  //   Lw2ycZlZtU9tLKzmafi1I6
'masterSecret' => 'UZJ3xFDr4l7FtkMfeQKiP8', //你的masterSecret
'host' => 'http://sdk.open.api.igexin.com/apiex.htm',
],

使用时配置参数template_type说明:

所有推送接口均支持四个消息模板,依次为通知弹框下载模板,通知链接模板,通知透传模板,透传模板
注:IOS离线推送需通过APN进行转发,需填写pushInfo字段,目前仅不支持通知弹框下载功能
1.点击通知打开应用模板  ====>IGtNotificationTemplateDemo()
    $config=[
  'title'=>'title',
  'text'=>'text',
  'template_type'=>1
  ];
2.点击通知打开网页模板  ====>IGtLinkTemplateDemo()
    $config=[
  'title'=>'title',
  'text'=>'text',
  'url'=>'http://www.baidu.com',
  'template_type'=>2
  ];
3.点击通知弹窗下载模板  ====>IGtNotyPopLoadTemplateDemo()
     $config=[
  'notyTitle'=>'notyTitle',
  'notyContent'=>'notyContent',
  'popTitle'=>'popTitle',
  'popContent'=>'popContent',
  'template_type'=>3
  ];
4.透传消息模版    =====>IGtTransmissionTemplateDemo()
    $config=[
        'type'=>'2', //收到消息是否立即启动应用,1为立即启动,2则广播等待客户端自启动
        'content'=>'我传的内容哦',
        'template_type'=>4
    ];

推送

1. 对单个用户推送消息:pushMessageToSingle()

$config=[
  'title'=>'title',
  'text'=>'text',
  'url'=>'http://www.baidu.com',
  'template_type'=>2
  ]; 
  $cid='f0d2b92075a0f86e09d049b0d096322b'; 
  Yii::$app->getui->config($config)->pushMessageToSingle($cid);

2. 对指定列表用户推送消息pushMessageToList()

$config=[
   'title'=>'title',
   'text'=>'text',
   'url'=>'http://www.baidu.com',
   'template_type'=>2
   ];
$cids=['f0d2b92075a0f86e09d049b0d096322b','f0d2b92075a0f86e09d049b0d096322b'];
Yii::$app->getui->config($config)->pushMessageToSingle($cids);

3. 对指定应用群推消息&&应用群推条件交并补功能pushMessageToApp()

  手机类型 "phoneType"=>array('ANDROID')
  地区   "region"=>array('浙江')
  自定义tag "tag"=>array('haha')
  'age'=>array("0000", "0010")
  上面情况一个以及一个以上就可以了。
  用法示例:
  $config=[
  'title'=>'title',
  'text'=>'text',
  'url'=>'http://www.baidu.com',
  'template_type'=>2
  ];
  $conditions=[
  ['name'=>'phoneType','value'=>array('ANDROID'),'opt'=>'or'],
  ['name'=>'region','value'=>array('浙江','福建'),'opt'=>'and'],
  ['name'=>'tag','value'=>array('haha'),'opt'=>'not']
  ];
  Yii::$app->getui->config($config)->pushMessageToApp($conditions);

4. 批量单推功能pushMessageToSingleBatch()

$configs[0]=[
   'title'=>'title',
   'text'=>'text',
   'url'=>'http://www.baidu.com',
   'template_type'=>2,
   'cid'=>'f0d2b92075a0f86e09d049b0d096322b'>
   ];
   $configs[1]=[
   'notyTitle'=>'notyTitle',
   'notyContent'=>'notyContent',
   'popTitle'=>'popTitle',
   'popContent'=>'popContent',
   'template_type'=>3,
   'cid'=>'f0d2b92075a0f86e09d049b0d096322b'
   ];
   用法
Yii::$app->getui->pushMessageToSingleBatch($configs);

其它接口

1别名

1. 对指定用户设置tag属性setTag()

用法
Yii::$app->getui->setTag('f0d2b92075a0f86e09d049b0d096322b’,array('', '中文', 'English'));

2. 获取指定用户的tag属性getUserTags()

用法
Yii::$app->getui->getUserTags('f0d2b92075a0f86e09d049b0d096322b');

All versions of getui with dependencies

PHP Build Version
Package Version
Requires yiisoft/yii2 Version ^2.0.15
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package sunmoon/getui contains the following files

Loading the files please wait ....