2017 © Pedro Peláez
 

library bgintercom

A ZF2 module for integrating with intercom.io

image

bgallagher/bgintercom

A ZF2 module for integrating with intercom.io

  • Monday, February 18, 2013
  • by bgallagher
  • Repository
  • 1 Watchers
  • 2 Stars
  • 67 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

BgIntercom

A ZF2 module to intergrate with intercom.io, (*1)

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., (*2)

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., (*3)

Both the getter method name & fallback date are configurable - see BgIntercom.config.php.dist., (*4)

Get in touch and/or PR if this doesn't meet your needs., (*5)

The Versions

18/02 2013

dev-master

9999999-dev

A ZF2 module for integrating with intercom.io

  Sources   Download

MIT

The Requires

 

zf2 intercom