birkof/onesignal-bundle
最新稳定版本:v3.0.0
Composer 安装命令:
composer require birkof/onesignal-bundle
包简介
Symfony integration of the norkunas/onesignal-php-api library
README 文档
README
Symfony integration of the norkunas/onesignal-php-api library
Getting Started
Installing
You just require using composer and you're good to go!
composer require birkof/onesignal-bundle
If you don't use Flex, you need to manually enable bundle in your kernel:
<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = [
// ...
new Adelplace\OneSignalBundle\OneSignalBundle()
];
}
Configuration
Add the following lines to your config.yml
adelplace_one_signal:
application_id: 'my application id'
application_auth_key: 'my application auth key'
user_auth_key: 'my user auth key'
Usage
To use the api service you just need to call 'onesignal.api' in the container
$api = $this->get('onesignal.api'); $api->notifications->getAll(); ...
For more information look at the norkunas/onesignal-php-api documentation
Contributing
Feel free to contribute if you have any idea to improve this project.
Testing [broken]
Please make sure you have docker installed on your host. Then just run
./run-test
Authors
License
This project is licensed under the MIT License - see the LICENSE.md file for details
统计信息
- 总下载量: 12.07k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-08-27