Download the PHP package atipik/hoa-websocket-bundle without Composer

On this page you can find all versions of the php package atipik/hoa-websocket-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package hoa-websocket-bundle

Atipik/HoaWebSocketBundle

Build Status

This bundle allows you to use Hoa/Websocket/Server and Hoa/Websocket/Client into Symfony2.

With a simple configuration, you will be able to launch your WebSocket server

1. Installation

1.1 Update your composer.json

Add these lines to your require section:

1.2 Install dependencies

1.3 Update your AppKernel.php file

1.4 Configure your project

To enable this bundle, you must add these lines in your config.yml:

You can also specify address and port.

By default, server will be started on 127.0.0.1:8080

2. Architecture

The Symfony 2 command php app/console hoa:websocketserver has only one job: calling a runner.

The runner links modules (your logic code) and WebSocket events which are managed by Atipik\Hoa\WebSocketBundle\WebSocket\Server.

When the WebSocket server receives an event, the runner catches it and calls all subscribed modules.

3. Server

3.1 Simple Usage

Don't forget to add atipik_hoa_web_socket.module tag !

You can get the current bucket by using $this->getBucket().

3.2 Advanced Usage

3.2.1 Modules group

If you want to scale your server, you can affect modules to different group and launch server for one or more group.

You can affect many modules in the same group

If you launch the server without group, all modules will be used.

You can also specify more than one group:

3.2.2 Override runner class

If you want to modify how the runner works, you should override its class:

3.2.3 Override server class

If you want to modify how the WebSocket Server works, you should override its class:

3.2.4 Override node class

Hoa/Websocket allows you to override node class to add your own data.

Of course, this bundle allow you to specify which class to use:

4. Client

If you want to communicate with a WebSocket Server, you can use service atipik_hoa_web_socket.client by using $this->get('atipik_hoa_web_socket.client') in your controller or to inject this service directly in services.yml.

For more documentation about WebSocket Client, see Hoa/WebSocket's documentation.

5. Launch unit tests

6. More documentation

See Hoa/WebSocket's documentation) to know how to use How/WebSocket and to have an example of JavaScript code.


All versions of hoa-websocket-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4
symfony/framework-bundle Version >=2.3
symfony/console Version >=2.3
hoa/websocket Version ~3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package atipik/hoa-websocket-bundle contains the following files

Loading the files please wait ....