# iOS-APNS-PHP-Server **Repository Path**: vaycent/iOS-APNS-PHP-Server ## Basic Information - **Project Name**: iOS-APNS-PHP-Server - **Description**: This is the PHP push server used to test push notification on iOS - **Primary Language**: PHP - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2020-09-30 - **Last Updated**: 2020-12-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 本地 php 推送服务器使用方法 ## 配置 ``` // Put your device token here (without spaces): // 放置你的 device token: $deviceToken = '****'; // Put your private key's passphrase here: // 放置你的私钥密码: $passphrase = 'xxxx'; // Put your alert message here: // 放置你的提示信息: $message = '杰哥是天才!!'; // Put your category id here: // 放置你的分类id: $category = 'alert'; ``` 这四个字段改成自己的,ck.pem 换成自己的,具体的制作方法可以看我的博客 [iOS8的推送](http://pupboss.com/2015/01/05/ios8-apns/) 分类 id 是 iOS8 的新特性,需要根据自己情况来设置,上面的博客中有介绍。 ##运行 * Mac 系统 * Windows ### Mac 系统 cd 到该目录,执行 php simplepush.php ### Windows 系统 安装 php 环境,其他同上