apns-php:为PHP程序添加苹果的推送信息服务

openkk 12年前

在苹果的操作系统3.0以上,你可以享受到苹果的推送信息的服务,简称Apple Push Notification Service(APNS),及时获得各类有用的资讯。
apns-php:为PHP程序添加苹果的推送信息服务

现在,你可以使用PHP去实现这个功能了,apns-php项目提供了这个功能,该项目的文档宣称APNS API在2010年的12月17日已经完成了,可以提供自定义提醒图片和本地化的按钮等新特性。

  • Autoload system, explicitly include only Autoload.php and all classes are loaded on-demand.
  • Message class, to build a notification payload.
  • Push class, to push one or more messages to Apple Push Notification service.
  • Feedback class, to query the Apple Feedback service to get the list of broken device tokens.
  • Push Server class, to create a Push Server with one or more (forked) processes reading from a common message queue.
  • Log class/interface, to log to standard output or for custom logging purpose.
  • Objective-C Demo Project with not-running, running in foreground and running in background application state support.

Classes hierarchy

apns-php:为PHP程序添加苹果的推送信息服务

apns-php:为PHP程序添加苹果的推送信息服务

apns-php:为PHP程序添加苹果的推送信息服务


http://code.google.com/p/apns-php/