承接 klaussilveira/urbanairship-php 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

klaussilveira/urbanairship-php

最新稳定版本:0.1.0

Composer 安装命令:

composer require klaussilveira/urbanairship-php

包简介

PHP library that provides a simple way to communicate with Urban Airship services

README 文档

README

Build Status

Urban Airship PHP is a drop-in library that provides a simple way to integrate Urban Airship services into your web application. It abstracts devices and notifications in order to provide a coherent and elegant interface to work with push notifications, batch pushes, broadcasts, device registration and more.

Authors and contributors

License

New BSD license

Supports

  • iOS, Blackberry device registration/deactivation
  • Android, iOS, Blackberry push notifications and broadcasts
  • Android, iOS, Blackberry batch pushes

TODO

  • Rich Push API
  • Feed API
  • Subscription API

Usage

The library is very easy to use. You just need to setup the client:

<?php

use UrbanAirship\Client;
use UrbanAirship\Push\AppleNotification;
use UrbanAirship\Device\AppleDevice;

$client = new Client('your_application_key', 'your_master_secret');

// Simple broadcast
$notification = new AppleNotification();
$notification->setAlert('Hey dude!');
$notification->setBadge(1);
$client->push($notification);

// Simple notification, with device
$device = new AppleDevice('FE66489F304DC75B8D6E8200DFF8A456E8DAEACEC428B427E9518741C92C6660');
$device->setAlias('Luke Skywalker')->addTag('republic')->addTag('pilot');

$notification = new AppleNotification();
$notification->addDevice($device);
$notification->setAlert('Hey dude!');
$notification->setBadge(1);
$client->push($notification);

For further information and examples, check the test suite.

统计信息

  • 总下载量: 3.48k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 6
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 6
  • Watchers: 1
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-2-Clause
  • 更新时间: 2013-01-23