bgallagher/bgintercom 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

bgallagher/bgintercom

Composer 安装命令:

composer require bgallagher/bgintercom

包简介

A ZF2 module for integrating with intercom.io

README 文档

README

A ZF2 module to intergrate with intercom.io

##Requires:

##Instalation & Setup (using composer):

  1. Run composer.phar require bgallagher/bgintercom:dev-master.
  2. Add BgIntercom to your application.config.php.
  3. Copy the distributed config file from vendor/bgallagher/BgIntercom/config/BgIntercom.config.php.dist to config/autoload/BgIntercom.config.php and fill in your app_id.
  4. echo the view helper in your layout <?= $this->intercom() ?>

##NOTE: Intercom.io requires a created_at field, however ZfcUser does not support this out of the box.

To overcome this, this module will:

  1. Check for a getter method for created_at (default: getCreatedAt()) on the User object. If found (assumes a DateTime object is returned) it will send this as the created_at timestamp. This obviously assumes that you have extended the ZfcUser User entity.
  2. Fallback to a default create_at datetime if the method is not found.

Both the getter method name & fallback date are configurable - see BgIntercom.config.php.dist.

Get in touch and/or PR if this doesn't meet your needs.

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-02-15