定制 snproject/bitter-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

snproject/bitter-bundle

最新稳定版本:1.0.0

Composer 安装命令:

composer require snproject/bitter-bundle

包简介

Implements a powerful analytics Symfony Bundle based on Bitter library using Redis bitmaps

README 文档

README

https://secure.travis-ci.org/rezzza/BitterBundle.png?branch=master https://insight.sensiolabs.com/projects/15882c8a-0875-4153-bc00-603e7cee2ab0/mini.png

BitterBundle makes it easy to use the Bitter library to implement real-time highly-scalable analytics using Redis bitmaps in your Symfony 2 project. Please see the Bitter library website for more info and documentation about this project.

Installation

Use Composer to install: rezzza/bitter-bundle.

In your composer.json you should have:

{
    "require": {
        "rezzza/bitter-bundle": "*"
    }
}

Then update your AppKernel.php to register the bundle with:

new Rezzza\BitterBundle\RezzzaBitterBundle()

Bitter uses Redis (version >=2.6).

Configuration

Using SncRedisBundle redis client:

rezzza_bitter:
    redis_client: snc_redis.default

Using custom redis client:

rezzza_bitter:
    redis_client: your.very.best.redis.client

You can also configure custom values for prefix_key and expire_timeout:

rezzza_bitter:
    redis_client: snc_redis.default
    prefix_key: my_app  # default - bitter
    expire_timeout: 300 # default - 60

Basic usage

Get Bitter:

$bitter = $this->container->get('rezzza.bitter');

Mark user 123 as active and has played a song:

$bitter->mark('active', 123);
$bitter->mark('song:played', 123);

Note

Please look at Bitter for all examples.

Todo

  • Add dashboard controller.
  • Add tests

统计信息

  • 总下载量: 18
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-12-01