2017 © Pedro Peláez
 

library kissmetrics-php

The KISSmetrics API client

image

kissmetrics/kissmetrics-php

The KISSmetrics API client

  • Tuesday, September 22, 2015
  • by bretthardin
  • Repository
  • 4 Watchers
  • 15 Stars
  • 298,698 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 20 Forks
  • 9 Open issues
  • 3 Versions
  • 2 % Grown

The README.md

KISSmetrics for PHP

Build Status, (*1)

KISSmetrics PHP client that doesn't overuse the singleton pattern and has a slightly better API and no built-in cron support (that's a feature). Here's how to use it:, (*2)

$km = new KISSmetrics\Client('API key', KISSmetrics\Transport\Sockets::initDefault()); // Initialize

$km->identify('bob@example.com')   // Identify user (always)
  ->alias('old-anonymous-cookie')  // Alias to previously anonymous user, maybe
  ->set(array('gender' => 'male')) // Set some property
  ->record('Viewed thing');        // Record an event, optionally with properties

$km->submit(); // Submit all that to KISSmetrics in one go

In case of errors this thing throws a KISSmetrics\ClientException so if you have a fire-and-forget attitude to these metrics just try/catch those. Though it's helpful when you want to make sure everything is setup correctly!, (*3)

Composer

{
  "require": {
    "kissmetrics/kissmetrics-php": "~0.4.2"
  }
}

License

Licensed under the MIT license., (*4)

The Versions

22/09 2015

dev-master

9999999-dev https://github.com/kissmetrics/kissmetrics-php

The KISSmetrics API client

  Sources   Download

MIT

The Requires

  • php >=5.3

 

The Development Requires

kissmetrics

22/09 2015

0.2.0

0.2.0.0 https://github.com/kissmetrics/kissmetrics-php

The KISSmetrics API client

  Sources   Download

MIT

The Requires

  • php >=5.3

 

The Development Requires

kissmetrics

18/07 2014

0.1.0

0.1.0.0 https://github.com/kissmetrics/kissmetrics-php

The KISSmetrics API client

  Sources   Download

MIT

The Requires

  • php >=5.3

 

The Development Requires

kissmetrics