Download the PHP package railroad/intercomeo without Composer

On this page you can find all versions of the php package railroad/intercomeo. 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 intercomeo

Intercom Integration

Installation

  1. Copy secrets to .env from secure note.
  2. Add IntercomeoServiceProvider to list of "providers" in config/app.php.
  3. Add to composer.json "require".
  4. Run the following:
    1. composer install
    2. php artisan vendor:publish
  5. Edit laravel/config/intercomeo.php (resulting from php artisan vendor:publish mentioned above) accordingly.
  6. Integrate into your application by firing and calling Intercomeo events and methods (respectively) as needed.

Note about the term "user_id"

Note: that below the term "user_id" refers to your user's id in your application (not their Intercom id). We will likely only ever use this "user_id" and very likely have no use for the intercom id.

Overview of Functionality

Add user to Intercom

Fire Railroad\Intercomeo\Events\MemberAdded event, passing in user-id, email, and (optionally) tags for that user.

Storing When a User Was Last Active

On every request, trigger a ApplicationReceivedRequest event, passing the necessary parameters as detailed below.

This will evaluate whether the user's activity for the current "time block" as already been recorded and interact with Intercom accordingly.

Railtracker is very useful here, but you can use whatever you want.

Required parameters

  1. user_id
  2. email
  3. request time (timestamp, UTC)
  4. previous request (timestamp, UTC)

Details

Note that all all time is handled in UTC timestamps (Unix Time).

Intercom's user model has a "last_request_at" property (reference). If we were to set this with every request, it would an inefficient use of our API rate-limits though. So, we'll decide a "buffer time amount", and save the last_request_time with that amount as an acceptable amount of inaccuracy.

The default "buffer time amount" is set and can be overridden in the config.

Frontend

Follow instructions provided by Intercom (https://developers.intercom.com/docs/basic-javascript).

Testing

Environmental Variables

To get environmental variables for running your tests, add them to the package's phpunit.xml like this:

BE VERY CAREFUL NOT TO COMMIT THIS IF YOU'VE ADDED SECRETS

API Secrets for Integration-Testing

Set in \Railroad\Intercomeo\Tests*TestCase::getEnvironmentSetUp*** like this:


$app['config']->set('intercomeo.access_token', env('INTERCOM_ACCESS_TOKEN'));

All versions of intercomeo with dependencies

PHP Build Version
Package Version
Requires php Version ~7
laravel/framework Version 5.*
guzzlehttp/guzzle Version ~6.0
intercom/intercom-php Version ^3.1-stable
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 railroad/intercomeo contains the following files

Loading the files please wait ....