borsaco/pushe-notification-bundle
Composer 安装命令:
composer require borsaco/pushe-notification-bundle
包简介
PHP pushe.co API wrapper for Symfony applications
README 文档
README
PHP pushe.co API wrapper for Symfony applications
Install
Via Composer
composer require borsaco/pushe-notification-bundle
Initialise
first initialise with this code and token you get from http://poushe.co
Edit your app/AppKernel.php to register the bundle in the registerBundles() method as above:
class AppKernel extends Kernel { public function registerBundles() { $bundles = array( // ... // register the bundle here new Borsaco\PusheNotificationBundle\PusheNotificationBundle() ); } }
then you have to config token for send notification you can get token from pushe.co and add configure in your config file:
pushe_notification: token: "7fb1***********29b464c"
Usage
Wherever you have access to the service container :
$pushNotification = $this->container->get('pushe_notification'); $pushNotification->send();
More
You can find more help in https://github.com/Borsaco/PusheNotification
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-07-09