Download the PHP package silverstripe/intercom without Composer

On this page you can find all versions of the php package silverstripe/intercom. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package intercom

SilverStripe Intercom Module

Build Status

This module provides SilverStripe integration for Intercom.

Requirements

Installation

Install the module with composer, just like all your favourite modules!

Documentation

You can find detailed documentation in the docs folder.

License

See license.md

How it works

Intercom's integration is quite simple: a few lines of JavaScript added just before the </body> tag. The module adds through its own RequestFilter.

Configuration

The module will make use of the following global constants in your .env file. You should set these up:

Note that if you disclose your secret key to anyone, they could impersonate users of your app and chat to your support team, so keep it secure! The App ID is less sensitive as it is in the HTML source of your site.

I recommend that you enable the "Test Version" of Intercom. This will give you a second App ID that you should use on your test and development environments.

Your application can customise the information send with the following properties

Only show Intercom sometimes

The SilverStripe\Intercom\IntercomScriptTags class has a configuration value, enabled, that can will disable any inclusion of Intercom script tags if set to false.

If you wish to show Intercom only sometimes, you can update this configuration value at any time during your page load, with the following command. For example, you may choose to show Intercom only on certain pages, or for certain users.

Usage

Tracking events

You can track events with the Intercom::trackEvent() method. The event will be tracked against the current user.

You can also explicitly specify which user this event should be tracked against:

Note that you can't currently track events for anonymous visitors; a LogicException will be thrown if you try.

Synchronising users via the API

Sometimes, it's not enough to wait until users log in to have their Intercom data updated. For example, if you want to use Intercom to send emails you may want to update the Intercom database before the first email is sent.

For this purpose, you can set dev/tasks/IntercomBulkLoadTask to run on a cronjob. By default it will synchronise all Member objects. If you wish to synchornise a reduced list of Members, you can set the user_list config option on the Intercom class. This should be of the form %$ServiceName, where ServiceName is the name of an Injector service.

In the preceding example, we're using a custom factory class called AllUserListFactory to define Member DataList. It needs to have a method called create() that returns a DataList of Members.

Integration with forms

To send data to Intercom from a form, you can use SilverStripe\Intercom\IntercomFormExtension.

This will provide several chainable methods to the Form class that help you map form fields to Intercom fields.

For custom attributes, prefix the field name with $.

Additionally, you can stuff assorted fields into a monolithic "note" for the user in Intercom. This map is keyed with labels that should precede the values for each field.

The above will create a note similar to:

Integration with Userforms

See the silverstripe-intercom-userforms module by Uncle Cheese.

Maintainers

Bugtracker

Bugs are tracked in the issues section of this repository. Before submitting an issue please read over existing issues to ensure yours is unique.

If the issue does look like a new bug:

Please report security issues to the module maintainers directly. Please don't file security issues in the bugtracker.

Development and contribution

If you would like to make contributions to the module please ensure you raise a pull request and discuss with the module maintainers.


All versions of intercom with dependencies

PHP Build Version
Package Version
Requires php Version ^5.4 || ^7
silverstripe/framework Version ^3.1
intercom/intercom-php Version ^1.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package silverstripe/intercom contains the following files

Loading the files please wait ....