Developed with love by KnpLabs Hire us for your project!
34

ElephantIOBundle

by nchaulet

elephant io symfony2 bundle

Elephant IO Bundle

Build Status

knpbundles.com

Sensio insight

Elephant.io library integration in symfony2.

This bundle allows you to communicate with a socket.io server (0.x or 1.x) from a Symfony2 application.

Installation

composer require nc/elephantio-bundle

In your AppKernel

public function registerbundles()
{
    return [
        ...
        ...
        new Nc\Bundle\ElephantIOBundle\NcElephantIOBundle(),
    ];
}

Configuration sample

nc_elephant_io:
    clients:
        default:
            connection: http://192.168.0.14:3006
            # specify version 0.x for 0.* version and 1.x for 1.0 version
            version: 0.x
        your_key:
            connection: http://192.168.0.14:3000
            version: 1.x

Usage

$client = $this->get('elephantio_client.your_key');
$client->send('event_name', ['foo' => 'test']);

More complex usage

$client = $this->get('elephantio_client.your_key');
$elephantIOClient = $client->getElephantIO();
// Refer to Elephant.io doc

Contribute ?

If you want to improve this bundle, you can use github pull-request and issue

nc_elephant_io:
clients:
connection: ~ # Required
version: 1.x
  • fix cs
    By nchaulet, 1 year ago
  • Merge pull request #8 from fractalzombie/master
    By web-flow, 1 year ago
  • Added namespace support, elephant io fluent api and some fixes
    By , 1 year ago
  • Added namespace support, elephant io fluent api and some fixes
    By fractalzombie, 1 year ago
  • Added namespace support, elephant io fluent api and some fixes
    By fractalzombie, 1 year ago
  • Merge pull request #7 from nchaulet/feature/upgrade-elephantio
    By web-flow, 1 year ago
  • Upgrade elephantio to 3.1.*
    By nchaulet, 1 year ago
  • add installation instruction in README
    By nchaulet, 3 years ago
  • fix CS
    By nchaulet, 3 years ago
  • add coke
    By nchaulet, 3 years ago
  • Remove compatibility with deprecated php 5.3
    By nchaulet, 3 years ago
  • update composer and README.md
    By nchaulet, 3 years ago
  • update depency injection pass
    By nchaulet, 3 years ago
  • Upgrade client to be compatible with elephant.io 3.0
    By nchaulet, 3 years ago
  • Merge pull request #4 from floyoops/patch-1
    By nchaulet, 3 years ago
  • limite compatible require deps
    By floyoops, 3 years ago
  • Fix sensio insight link
    By nchaulet, 4 years ago
  • add sensio insight badge
    By nchaulet, 4 years ago
  • remove unused import
    By nchaulet, 4 years ago
  • Update README.md
    By nchaulet, 4 years ago
  • Update README.md
    By nchaulet, 4 years ago
  • Merge pull request #1 from garak/patch-1
    By nchaulet, 5 years ago
  • Update NcElephantIOExtension.php
    By garak, 5 years ago
  • Add knp bundle bage
    By nchaulet, 5 years ago
  • Fix test
    By nchaulet, 5 years ago
  • Update composer.json
    By nchaulet, 5 years ago
  • add test and modif readme
    By nicolas, 5 years ago
  • add travis status
    By nchaulet, 5 years ago
  • travis ci
    By nchaulet, 5 years ago
  • units test
    By nchaulet, 5 years ago