开源软件名称(OpenSource Name):urbanairship/php-library2开源软件地址(OpenSource Url):https://github.com/urbanairship/php-library2开源编程语言(OpenSource Language):PHP 100.0%开源软件介绍(OpenSource Introduction):Airship PHP LibraryPHP library for use with the Airship REST API for sending notifications. Supports iOS, Android, Amazon, and Windows. Airship is no longer actively developing this library, but will respond to
feature requests, issues, and pull requests when they are submitted via
https://support.airship.com. This library is provided as sample code, and
Airship makes no guarantees as to completeness or regularity of updates.
However, we do welcome pull requests with a signed RequirementsPHP >= 5.3 Dependencies
Development Dependencies PHPUnit Example Usage<?php
require_once 'vendor/autoload.php';
use UrbanAirship\Airship;
use UrbanAirship\AirshipException;
use UrbanAirship\UALog;
use UrbanAirship\Push as P;
use Monolog\Logger;
use Monolog\Handler\StreamHandler;
UALog::setLogHandlers(array(new StreamHandler("php://stdout", Logger::DEBUG)));
$airship = new Airship("<app key>", "<master secret>");
try {
$response = $airship->push()
->setAudience(P\iosChannel("Insert your iOS channel here!"))
->setNotification(P\notification("Hello from PHP"))
->setDeviceTypes(P\deviceTypes("ios"))
->send();
} catch (AirshipException $e) {
print_r($e);
} Resources |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论