Download the PHP package jdare/clank-bundle without Composer
On this page you can find all versions of the php package jdare/clank-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jdare/clank-bundle
More information about jdare/clank-bundle
Files in jdare/clank-bundle
Package clank-bundle
Short Description Symfony ClankBundle
License MIT
Homepage https://github.com/JDare/ClankBundle
Informations about the package clank-bundle
ClankBundle
About
Clank is a Symfony2 Bundle designed to bring together WebSocket functionality in a easy to use application architecture.
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.
Powered By Ratchet and Autobahn JS, with Symfony2
Resources
- Installation Instructions
- Client Javascript
- Server Side of RPC
- PubSub Topic Handlers
- Periodic Services(functions to be run every x seconds with the IO loop.)
- Session Management
- Clank Server Events
Code Cookbook
- Sharing Config between Server and Client
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
Then update composer to install the new packages:
Step 2: Add to your App Kernel
Step 3: Add to Assetic Bundles
Add "JDareClankBundle" to your assetic bundles in app/config (this is required to render the client side code).
Step 4: Configure WebSocket Server
Add the following to your app/config.yml
Note: when connecting on the client, if possible use the same values as here to ensure compatibility for sessions etc.
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.
If everything is successful, you will see something similar to the following:
This means the websocket server is now up and running!
Next Steps
For further documentations on how to use Clank, please continue with the client side setup.
- Setup Client Javascript