keen-io/keen-io-bundle
Composer 安装命令:
composer require keen-io/keen-io-bundle
包简介
Symfony Bundle for Keen IO
README 文档
README
Overview
The Keen IO Symfony2 Bundle allows you to quickly and easily use the Keen IO PHP Client in your Symfony 2 applications.
Community-Supported SDK
This is an unofficial community supported SDK.
KeenIO Bundle Installation
The best method of installation is through the use of composer.
Add the bundle to Composer
{
"require": {
"keen-io/keen-io-bundle": "~1.3"
}
}
Update AppKernel.php
Add The KeenIO Bundle to your kernel bootstrap sequence
public function registerBundles() { $bundles = array( // ... new KeenIO\Bundle\KeenIOBundle\KeenIOBundle(), ); return $bundles; }
Configure the Client
The values for the configuration can be found in the Project Overview section of your Keen IO Dashboard
#app/config.yml
keen_io:
version: <version> //version is optional and correctly defaults to 3.0
project_id: <project id>
master_key: <master key>
write_key: <write key>
read_key: <read key>
Using the Client
Once configured the client is available through the service container in your application.
#src/AcmeBundle/Controller/YourController public function indexAction() { $client = $this->get('keen_io'); $client->addEvent('example_collection', array( 'foo' => 'bar' )); // ... }
Or it can be passed into your services through dependency injection:
#app/config/services.yml
# Example Tracking Service
tracking.service:
class: Acme\Bundle\AcmeBundle\Service\Tracking
arguments:
- @keen_io
Questions & Support
If you have any questions, bugs, or suggestions, please report them via Github Issues. Or, come chat with us anytime at http://keen.chat. We'd love to hear your feedback and ideas!
Contributing
This is an open source project and we love involvement from the community! Hit us up with pull requests and issues.
keen-io/keen-io-bundle 适用场景与选型建议
keen-io/keen-io-bundle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 490.26k 次下载、GitHub Stars 达 16, 最近一次更新时间为 2014 年 01 月 09 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「symfony」 「bundle」 「analytics」 「events」 「keen.io」 「keen」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 keen-io/keen-io-bundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 keen-io/keen-io-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 keen-io/keen-io-bundle 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
2lenet/EasyAdminPlusBundle
The bundle for easy using json-rpc api on your project
Provide a way to secure accesses to all routes of an symfony application.
DMS Meetup API Bundle, enables Meetup API clients in services
Analytics chooser extensions for site settings.
Bundle Symfony DaplosBundle
统计信息
- 总下载量: 490.26k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 16
- 点击次数: 21
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-01-09