PHP code example of keen-io / keen-io-bundle
1. Go to this page and download the library: Download keen-io/keen-io-bundle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
keen-io / keen-io-bundle example snippets
public function registerBundles()
{
$bundles = array(
// ...
new KeenIO\Bundle\KeenIOBundle\KeenIOBundle(),
);
return $bundles;
}
#src/AcmeBundle/Controller/YourController
public function indexAction()
{
$client = $this->get('keen_io');
$client->addEvent('example_collection', array( 'foo' => 'bar' ));
// ...
}