moskalyovd/fcm-bundle
最新稳定版本:v0.3
Composer 安装命令:
composer require moskalyovd/fcm-bundle
包简介
Symfony bundle for Firebase Cloud Messaging
README 文档
README
Symfony bundle for Firebase Cloud Messaging
Installation
To use this bundle in your project add following lines to your composer.json:
"require": { "moskalyovd/fcm-bundle": "^0.2" }
and enable it in your AppKernel.php:
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( new Moskalyovd\FCMBundle\MoskalyovdFCMBundle(), ); }
Configuration
moskalyovd_fcm: server_key: 'your_server_key'
Usage
<?php public function testAction() { $client = $this->get('moskalyovd_fcm.client'); $message = new Message(); $message->addRecipient(new Device('token')); $message->setNotification(new Notification('Title', 'Body')); $response = $client->send($message); }
For more information please reffer to php-fcm library
统计信息
- 总下载量: 36.04k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2018-01-22