dabsquared/dabsquared-push-notifications-bundle
最新稳定版本:1.2.1
Composer 安装命令:
composer require dabsquared/dabsquared-push-notifications-bundle
包简介
Push notifications/messages for mobile devices
README 文档
README
A bundle to allow sending of push notifications to mobile devices. Currently supports Android (C2DM, GCM), Blackberry, Safari and iOS devices. The Base framework is imported from https://github.com/richsage/RMSPushNotificationsBundle
Any contributions are welcome. The goal here is to provide an interface for push notifications with device registration and user device pairing just like FOSCommentBundle, but with very little code to write.
Road Map
See Issue #7
Documentation
The bulk of the documentation is stored in the Resources/doc/index.md
file in this bundle:
Installation
All the installation instructions are located in documentation.
License
This bundle is under the MIT license. See the complete license in the bundle:
Resources/meta/LICENSE
Admin Web Interface
Sending Messages
Send to a User:
use DABSquared\PushNotificationsBundle\Message\iOSMessage; class PushDemoController extends Controller { public function pushAction($aUser) { foreach($aUser->getDevices() as $device) { $message = new Message(); $message->setMessage('Oh my! A push notification!'); $message->setDevice($device); $this->container->get('dab_push_notifications')->send($message); } return new Response('Push notification send!'); } }
Send to a Device:
use DABSquared\PushNotificationsBundle\Message\iOSMessage; class PushDemoController extends Controller { public function pushAction($aDevice) { $message = new Message(); $message->setMessage('Oh my! A push notification!'); $message->setDevice($aDevice); $this->container->get('dab_push_notifications')->send($message); return new Response('Push notification send!'); } }
统计信息
- 总下载量: 10.41k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 30
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2013-02-01


