PHPackages                             priyolahiri/keenclient-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. priyolahiri/keenclient-php

ActiveLibrary[API Development](/categories/api)

priyolahiri/keenclient-php
==========================

A PHP library for reporting events to the Keen IO API

1.0.0(13y ago)07MITPHPPHP &gt;=5.3.3

Since Apr 3Pushed 13y ago1 watchersCompare

[ Source](https://github.com/priyolahiri/KeenClient-PHP)[ Packagist](https://packagist.org/packages/priyolahiri/keenclient-php)[ Docs](http://keen.io)[ RSS](/packages/priyolahiri-keenclient-php/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (3)Used By (0)

Keen IO PHP Library
===================

[](#keen-io-php-library)

[![Build Status](https://camo.githubusercontent.com/0755610f1ac7db59d4c43a1a36fd110b824a2c4a2dcbce3dcb7140838b8a8fed/68747470733a2f2f7472617669732d63692e6f72672f6b65656e6c6162732f4b65656e436c69656e742d5048502e706e67)](https://travis-ci.org/keenlabs/KeenClient-PHP.png)[![Still Maintained](https://camo.githubusercontent.com/f8f8021849e0a0b317afe4c626c56a8b13a96e59dfca4812af3d84428925d894/687474703a2f2f7374696c6c6d61696e7461696e65642e636f6d2f696d616765732f6d61696e7461696e65642e706e67)](http://stillmaintained.com/keenlabs/KeenClient-PHP)

This is a library to abstract the Keen IO API addEvent method

Installation
------------

[](#installation)

1. edit `composer.json` file with following contents:

    ```
    "require": {
       "keen-io/keen-io": "dev-master"
    }
    ```
2. install composer via `curl -s http://getcomposer.org/installer | php` (on windows, download  and execute it with PHP)
3. run `php composer.phar install`

Use
---

[](#use)

Configure the service

```
use KeenIO\Service\KeenIO;

KeenIO::configure($projectId, $apiKey);
```

Send a new event

```
KeenIO::addEvent('purchases', array(
    'purchase' => array(
        'item' => 'Golden Elephant'
    ),
));
```

Create a scoped key

```
$filter = array(
    'property_name' => 'id',
    'operator' => 'eq',
    'property_value' => '123'
);
$filters = array($filter);

$scopedKey = KeenIO::getScopedKey($filters);
```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 86.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

4836d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1254077?v=4)[Priyadarshi Lahiri](/maintainers/priyolahiri)[@priyolahiri](https://github.com/priyolahiri)

---

Top Contributors

[![TomHAnderson](https://avatars.githubusercontent.com/u/493920?v=4)](https://github.com/TomHAnderson "TomHAnderson (51 commits)")[![tonypiper](https://avatars.githubusercontent.com/u/206124?v=4)](https://github.com/tonypiper "tonypiper (5 commits)")[![priyolahiri](https://avatars.githubusercontent.com/u/1254077?v=4)](https://github.com/priyolahiri "priyolahiri (3 commits)")

---

Tags

analyticskeen-io

### Embed Badge

![Health badge](/badges/priyolahiri-keenclient-php/health.svg)

```
[![Health](https://phpackages.com/badges/priyolahiri-keenclient-php/health.svg)](https://phpackages.com/packages/priyolahiri-keenclient-php)
```

###  Alternatives

[keen-io/keen-io

A PHP library for reporting events to the Keen IO API

1332.4M7](/packages/keen-io-keen-io)[irazasyed/laravel-gamp

Send analytics data to Google Analytics from Laravel. A package for GA Measurement Protocol API

3321.6M1](/packages/irazasyed-laravel-gamp)[matomo/matomo-php-tracker

PHP Client for Matomo Analytics Tracking API

2193.4M33](/packages/matomo-matomo-php-tracker)[ins0/google-measurement-php-client

Server-Side PHP Client to communicate to Google Analytics over the Google Measurement Protocol

51358.6k2](/packages/ins0-google-measurement-php-client)[alexwestergaard/php-ga4

PHP Library for Google Analytics 4 with Server Side Tagging

63154.0k2](/packages/alexwestergaard-php-ga4)[fourlabs/gamp-bundle

Google Analytics Measurement Protocol bundle for Symfony

31430.6k](/packages/fourlabs-gamp-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
