Download the PHP package code-lives/app-push-tpns without Composer

On this page you can find all versions of the php package code-lives/app-push-tpns. 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 app-push-tpns

腾讯 移动推送 TPNS(点个收藏是我前进的动力)

官方接口文档

安装

配置参数说明

需要配置的参数

参数名字 类型 说明
appid string 申请的appid
secretKey string 申请的appsecretkey
environment string 用户指定推送环境,仅限 iOS 平台推送使用 默认 product;推送生产环境;dev推送开发环境

Config Demo

本地config的配置

全量推送

给所有安装app的用户发送消息。

单账号推送或多账号推送

一对一给用户发送消息 或 多个账号发送消息

参数名字 类型 说明
content string 内容
account array 根据数量判断 单账号或多账号推送
message_type string 默认:notify(可不传);notify:通知;message:透传消息/静默消息

单设备推送或多设备推送

单或多设备推送 传递数量判断

参数名字 类型 说明
content string 内容
token array 根据数量判断 单设备或多设备
message_type string 默认:notify(可不传);notify:通知;message:透传消息/静默消息

标签推送

tag 字段根据开发文档 tag_items 字段 自定义

参数名字 类型 说明
content string 内容
tag array 根据开发文档 tag_items 字段 封装
message_type string 默认:notify(可不传); notify:通知;message:透传消息/静默消息

标签绑定与解绑

参数名字 类型 说明
operator_type int 类型看官方文档1-10
array array operator_type(1-8) ['token_list'=>] operator_type(9-10) ['tag_token_list'=>]
tag_array array operator_type = 1,2,3,4,6,7,8时 ['tag_list'=>] operator_type(9-10)可不传递

删除标签下所有设备

参数名字 类型 说明
tag_list array 待删除标签列表:"tag_list": ["test_tag_3_Ik0N0", "test_tag_2_Ik0N0"]

账号绑定与解绑

array 根据开发文档->账号相关接口->账号绑定与解绑

参数名字 类型 说明
operator_type int 类型看官方文档
array array 查看文档

账号查询

array 根据开发文档->账号相关接口->账号设备绑定查询

参数名字 类型 说明
operator_type int 类型看官方文档
array array 查看文档

All versions of app-push-tpns with dependencies

PHP Build Version
Package Version
No informations.
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 code-lives/app-push-tpns contains the following files

Loading the files please wait ....