PHPackages                             wensleydale/keen-io-laravel - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. wensleydale/keen-io-laravel

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

wensleydale/keen-io-laravel
===========================

A minimal service provider to set up and use the Keen.io PHP library in Laravel 5

v1.0.3(9y ago)13190.2k51MITPHP

Since Jun 29Pushed 7y agoCompare

[ Source](https://github.com/garethtdavies/keen-io-laravel)[ Packagist](https://packagist.org/packages/wensleydale/keen-io-laravel)[ RSS](/packages/wensleydale-keen-io-laravel/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (4)Versions (5)Used By (1)

Keen.io Laravel Helper
======================

[](#keenio-laravel-helper)

A service provider and facade to set up and use the Keen.io PHP library in Laravel 5.

[![Build Status](https://camo.githubusercontent.com/3a0deac9366116bd566df51671c8f543d6115cd9ca1bdebf1ecc7c95c2d551d4/68747470733a2f2f7472617669732d63692e6f72672f676172657468746461766965732f6b65656e2d696f2d6c61726176656c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/garethtdavies/keen-io-laravel)[![Total Downloads](https://camo.githubusercontent.com/e1a93c9a4e157160e5d2a2c36fb89389217e921cde39f30db74ff4ba9369f5f8/68747470733a2f2f706f7365722e707567782e6f72672f77656e736c657964616c652f6b65656e2d696f2d6c61726176656c2f646f776e6c6f616473)](https://packagist.org/packages/wensleydale/keen-io-laravel)[![License](https://camo.githubusercontent.com/0b38daa40218988cd99dfef6463dabc6f7898a2c63e210b2d3d03d5f50aa5e54/68747470733a2f2f706f7365722e707567782e6f72672f77656e736c657964616c652f6b65656e2d696f2d6c61726176656c2f6c6963656e7365)](https://packagist.org/packages/wensleydale/keen-io-laravel)

This package consists of a service provider, which binds an instance of an initialized Keen.io client to the IoC-container and a Keen facade so you may access all methods of the Keen-io class via the syntax:

```
$event = ['purchase' => ['item' => 'Golden Elephant']];

Keen::addEvent('purchases', $event);
```

You should refer to the [Keen PHP client](https://github.com/keenlabs/KeenClient-PHP) for full details about all available methods.

Setup
-----

[](#setup)

1. Install the 'wensleydale/keen-io-laravel' package

    Note, this will also install the required keen-io/keen-io package.

    ```
    $ composer require wensleydale/keen-io-laravel:1.*
    ```
2. Update 'config/app.php'

    ```
    # Add `KeenLaravelServiceProvider` to the `providers` array
    'providers' => array(
        ...
        Wensleydale\KeenLaravel\KeenLaravelServiceProvider::class,
    )

    # Add the `KeenFacade` to the `aliases` array
    'aliases' => array(
        ...
        'Keen' => Wensleydale\KeenLaravel\KeenFacade::class,
    )
    ```
3. Publish the configuration file (creates keen.php in config directory)

    ```
    $ php artisan vendor:publish
    ```

    Then either edit the keen.php file in the config directory or simply add the following to your .env file:

    ```
    KEEN_PROJECT_ID=
    KEEN_MASTER_KEY=
    KEEN_WRITE_KEY=
    KEEN_READ_KEY=
    ```

### Type Hinting

[](#type-hinting)

If you do not wish to make use of the Keen facade you may simply "type-hint" the KeenIOClient dependency in the constructor of a class that is resolved by the IoC container and an instantiated client will be ready for use.

```
use KeenIO\Client\KeenIOClient;

private $client;

public function __construct(KeenIOClient $client)
{
    $this->client = $client;
}

public function addEvent()
{
	$event = ['purchase' => ['item' => 'Golden Elephant']];

	$this->client->addEvent('purchases', $event);

    //Or overwrite defaults
    $this->client->setProjectId('new-project-id');
}
```

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 80% 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 ~219 days

Total

4

Last Release

3317d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/947d18667b95c03befacd5f20dae7127b954f2cefcbc17e30b8bf031c23ba194?d=identicon)[garethtdavies](/maintainers/garethtdavies)

---

Top Contributors

[![garethtdavies](https://avatars.githubusercontent.com/u/135382?v=4)](https://github.com/garethtdavies "garethtdavies (8 commits)")[![joshtorres](https://avatars.githubusercontent.com/u/5092957?v=4)](https://github.com/joshtorres "joshtorres (1 commits)")[![simondotwhite](https://avatars.githubusercontent.com/u/793770?v=4)](https://github.com/simondotwhite "simondotwhite (1 commits)")

---

Tags

laravelkeenkeen-io

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/wensleydale-keen-io-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/wensleydale-keen-io-laravel/health.svg)](https://phpackages.com/packages/wensleydale-keen-io-laravel)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

17221.0k3](/packages/interaction-design-foundation-laravel-geoip)[nedwors/navigator

A Laravel package to ease defining navigation menus

433.1k](/packages/nedwors-navigator)[xefi/faker-php-laravel

Faker php integration with laravel

1915.1k](/packages/xefi-faker-php-laravel)[dcblogdev/laravel-junie

Install pre-configured guides for Jetbrains Junie

392.5k](/packages/dcblogdev-laravel-junie)

PHPackages © 2026

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