2017 © Pedro Peláez
 

symfony-bundle clank-bundle

Symfony ClankBundle

image

venzon/clank-bundle

Symfony ClankBundle

  • Thursday, June 5, 2014
  • by venzon
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2,278 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 34 Forks
  • 0 Open issues
  • 9 Versions
  • 0 % Grown

The README.md

ClankBundle

About

Clank is a Symfony2 Bundle designed to bring together WebSocket functionality in a easy to use application architecture., (*1)

Much like Socket.IO it provides both server side and client side code ensuring you have to write as little as possible to get your app up and running., (*2)

Powered By Ratchet and Autobahn JS, with Symfony2, (*3)

Resources

Code Cookbook

Sample Projects

  • Clank Chat (View Source) This is a simple chat room site where a user can join any channel and chat to people there.

Installation Instructions

Step 1: Install via composer

Add the following to your composer.json, (*4)

{
    "require": {
        "jdare/clank-bundle": "0.1.*"
    }
}

Then update composer to install the new packages:, (*5)

php composer.phar update

Step 2: Add to your App Kernel

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new JDare\ClankBundle\JDareClankBundle(),
    );
}

Step 3: Add to Assetic Bundles

Add "JDareClankBundle" to your assetic bundles in app/config (this is required to render the client side code)., (*6)

# Assetic Configuration
assetic:
    ...
    bundles:        [ JDareClankBundle ]

Step 4: Configure WebSocket Server

Add the following to your app/config.yml, (*7)

# Clank Configuration
clank:
    web_socket_server:
        port: 8080        #The port the socket server will listen on
        host: 127.0.0.1   #(optional) The host ip to bind to

Note: when connecting on the client, if possible use the same values as here to ensure compatibility for sessions etc., (*8)

Step 5: Launching the Server

The Server Side Clank installation is now complete. You should be able to run this from the root of your symfony installation., (*9)

php app/console clank:server

If everything is successful, you will see something similar to the following:, (*10)

Starting Clank
Launching Ratchet WS Server on: *:8080

This means the websocket server is now up and running!, (*11)

Next Steps

For further documentations on how to use Clank, please continue with the client side setup., (*12)

The Versions

05/06 2014

dev-master

9999999-dev https://github.com/Venzon/ClankBundle

Symfony ClankBundle

  Sources   Download

MIT

The Requires

 

by Jeremy Dare

web socket application

29/05 2014

dev-rachtet_0.3

dev-rachtet_0.3 https://github.com/Venzon/ClankBundle

Symfony ClankBundle

  Sources   Download

MIT

The Requires

 

by Jeremy Dare

web socket application

23/11 2013

0.1.6

0.1.6.0 https://github.com/JDare/ClankBundle

Symfony ClankBundle

  Sources   Download

MIT

The Requires

 

by Jeremy Dare

web socket application

03/02 2013

0.1.5

0.1.5.0 https://github.com/JDare/ClankBundle

Symfony ClankBundle

  Sources   Download

MIT

The Requires

 

by Jeremy Dare

web socket application

02/02 2013

0.1.4

0.1.4.0 https://github.com/JDare/ClankBundle

Symfony ClankBundle

  Sources   Download

MIT

The Requires

 

by Jeremy Dare

web socket application

02/02 2013

0.1.3

0.1.3.0 https://github.com/JDare/ClankBundle

Symfony ClankBundle

  Sources   Download

MIT

The Requires

 

by Jeremy Dare

web socket application

02/02 2013

0.1.2

0.1.2.0 https://github.com/JDare/ClankBundle

Symfony ClankBundle

  Sources   Download

MIT

The Requires

 

by Jeremy Dare

web socket application

02/02 2013

0.1.1

0.1.1.0 https://github.com/JDare/ClankBundle

Symfony ClankBundle

  Sources   Download

MIT

The Requires

 

by Jeremy Dare

web socket application

01/02 2013

0.1.0

0.1.0.0 https://github.com/jdare/ClankBundle

Symfony ClankBundle

  Sources   Download

MIT

The Requires

 

by Jeremy Dare

web socket application