kitlabs / kit-jpush-bundle
轻松在 Symfony 中使用 jpush sdk
v0.1.0
2018-04-14 09:15 UTC
Requires
- jpush/jpush: >=3.5
This package is not auto-updated.
Last update: 2024-09-15 04:26:12 UTC
README
Symfony 对 jpush-api-php-client 的包装。
KitJpushBundle 为您的 Symfony 项目提供了一种简单的集成方式。
安装
步骤 1: 下载 Bundle
打开命令行,进入您的项目目录,并执行以下命令以下载此 Bundle 的最新稳定版本
$ composer require kitlabs/kit-jpush-bundle
此命令需要您全局安装了 Composer,具体请参考 Composer 文档的安装章节。
步骤 2: 启用 Bundle
然后,将 Bundle 添加到项目 app/AppKernel.php
文件中已注册的 Bundle 列表里,以启用该 Bundle。
<?php
// app/AppKernel.php
// ...
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
// ...
new Kit\JpushBundle\KitJpushBundle(),
);
// ...
}
// ...
}
步骤 3: 配置
# config.yml
kit_jpush:
client:
client_default:
app_key: *******
master_secret: *****
client_another:
app_key: *******
master_secret: ****