2017 © Pedro Peláez
 

library urbanairship-php

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

image

klaussilveira/urbanairship-php

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

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 6 Forks
  • 3 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Urban Airship PHP

Build Status, (*1)

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

Authors and contributors

License

New BSD license, (*3)

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

<?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., (*5)

The Versions

23/01 2013

dev-master

9999999-dev https://github.com/klaussilveira/urbanairship-php

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

  Sources   Download

BSD-2-Clause

The Requires

 

push notification urbanairship urbanairship-php

23/01 2013

0.1.0

0.1.0.0 https://github.com/klaussilveira/urbanairship-php

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

  Sources   Download

BSD-2-Clause

The Requires

 

push notification urbanairship urbanairship-php