2017 © Pedro Peláez
 

symfony-bundle keen-io-bundle

Symfony2 Bundle for Keen IO

image

keen-io/keen-io-bundle

Symfony2 Bundle for Keen IO

  • Friday, October 20, 2017
  • by dkador
  • Repository
  • 9 Watchers
  • 14 Stars
  • 67,261 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 8 Forks
  • 2 Open issues
  • 6 Versions
  • 6 % Grown

The README.md

Keen IO Symfony2 Bundle

CI, (*1)

Overview

The Keen IO Symfony2 Bundle allows you to quickly and easily use the Keen IO PHP Client in your Symfony 2 applications., (*2)

Community-Supported SDK

This is an unofficial community supported SDK., (*3)

KeenIO Bundle Installation

The best method of installation is through the use of composer., (*4)

Add the bundle to Composer
{
    "require": {
        "keen-io/keen-io-bundle": "~1.3"
    }
}
Update AppKernel.php

Add The KeenIO Bundle to your kernel bootstrap sequence, (*5)

public function registerBundles()
{
    $bundles = array(
        // ...
        new KeenIO\Bundle\KeenIOBundle\KeenIOBundle(),
    );

    return $bundles;
}
Configure the Client

The values for the configuration can be found in the Project Overview section of your Keen IO Dashboard, (*6)

#app/config.yml

keen_io:
    version:    <version> //version is optional and correctly defaults to 3.0
    project_id: <project id>
    master_key: <master key>
    write_key:  <write key>
    read_key:   <read key>

Using the Client

Once configured the client is available through the service container in your application., (*7)

#src/AcmeBundle/Controller/YourController

public function indexAction()
{
    $client = $this->get('keen_io');
    $client->addEvent('example_collection', array( 'foo' => 'bar' ));

    // ...
}

Or it can be passed into your services through dependency injection:, (*8)

#app/config/services.yml

# Example Tracking Service
tracking.service:
    class: Acme\Bundle\AcmeBundle\Service\Tracking
    arguments:
        - @keen_io

Questions & Support

If you have any questions, bugs, or suggestions, please report them via Github Issues. Or, come chat with us anytime at http://keen.chat. We'd love to hear your feedback and ideas!, (*9)

Contributing

This is an open source project and we love involvement from the community! Hit us up with pull requests and issues., (*10)

The Versions

22/10 2015

1.1.1

1.1.1.0 https://github.com/keenlabs/KeenClient-PHP-Sf2

Symfony2 Bundle for Keen IO

  Sources   Download

MIT

The Requires

 

The Development Requires

analytics events bundle symfony keen.io keen

03/10 2014

1.1.0

1.1.0.0 https://github.com/keenlabs/KeenClient-PHP-Sf2

Symfony2 Bundle for Keen IO

  Sources   Download

MIT

The Requires

 

The Development Requires

analytics events bundle symfony keen.io keen

10/01 2014

1.0.0

1.0.0.0 https://github.com/keenlabs/KeenClient-PHP-Sf2

Symfony2 Bundle for Keen IO

  Sources   Download

MIT

The Requires

 

The Development Requires

analytics events bundle symfony keen.io keen