Download the PHP package icekson/ws-app-server without Composer

On this page you can find all versions of the php package icekson/ws-app-server. 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 ws-app-server

Usage of Websockets server


Configuration and description of services

config/autoload/server.json contains all information about services. There are few types of services suported:

Example of configuration file for server:

{
  "ws-server": {
    "services": {
      "gate-server-1": {
        "php_path": "php",
        "name": "gate-server-1",
        "class": "Icekson\\WsAppServer\\Service\\GateService",
        "host": "vps.cricket.program-ace.net/ws-gate/",
        "port": 80,
        "bind_port": 5000
      },
      "connector-server-1": {
        "php_path": "php",
        "name": "connector-server-1",
        "class": "Icekson\\WsAppServer\\Service\\ConnectorService",
        "host": "vps.cricket.program-ace.net/ws1/",
        "identity_finder_class" : "Application\\Utils\\UserIdentityFinder",
        "port": 80,
        "bind_port": 5001
      },
      "connector-server-2": {
        "php_path": "php",
        "name": "connector-server-2",
        "class": "Icekson\\WsAppServer\\Service\\ConnectorService",
        "host": "vps.cricket.program-ace.net/ws2/",
        "identity_finder_class" : "Application\\Utils\\UserIdentityFinder",
        "port": 80,
        "bind_port": 5002
      },
      "backend-server": {
        "php_path": "php",
        "name": "backend-server-1",
        "class": "Application\\Service\\BackendService",
        "processes_limit": 20,
        "count": 1,
        "debug": true
      },
      "jobs-server-1": {
        "php_path": "php",
        "name": "jobs-server-1",
        "class": "Icekson\\WsAppServer\\Service\\JobsService",
        "routing_key": "match"
      },
    }
  }
}

Script commands

run server

path to config directory or file, not required field

php scripts/runner.php app-server:start --config-path="./config/autoload/"

check server state

check server and if not started start it

php scripts/runner.php app-server:check

stop server

php scripts/runner.php app-server:stop

Test Tools

Run monitor for application logs

It works via RabbitMQ, it shows all the logs for scripts in system which uses Icekson\Utils\Logger

 php scripts/runner.php tool:logs-monitor

All versions of ws-app-server with dependencies

PHP Build Version
Package Version
Requires react/react Version ^0.4.2
videlalvaro/php-amqplib Version 2.*.*
cboden/ratchet Version ^0.3.3
symfony/process Version ~2.8|3.0.*|3.1.*
symfony/console Version ~2.8|3.0.*|3.1.*
hassankhan/config Version ^0.8.2
monolog/monolog Version ^1.17
icekson/utils Version 0.9.0.*
icekson/remote-services Version 0.9.0.*
bunny/bunny Version v0.2.0
predis/predis Version v1.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 icekson/ws-app-server contains the following files

Loading the files please wait ....