Download the PHP package scherersoftware/cake-websocket without Composer

On this page you can find all versions of the php package scherersoftware/cake-websocket. 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 cake-websocket

CakePHP 3 Websocket  Plugin

Build Status License Latest Stable Version Latest Unstable Version Monthly Downloads

Introduction

This CakePHP 3 plugin gives you an easy way to add websocket capability to your web application.

Main Packages

Requirements


Usage in 4 easy steps

Note: You can checkout our CakePHP App Template for testing it on a clean app setup with preinstalled dependencies.

1. Define a new event

Example for websocket_events.php

2. Publish the event in server context (e.g. Shell, Controller, Table...)

Example for UsersController.php

3. Let the client receive the event and define a callback

Example for ../users/index_controller.js

4. Run the websocket server shell and start testing!


Installation

1. Require the plugin

You can install this plugin into your CakePHP application using composer.

The recommended way to install composer packages is:

2. Load the plugin

The next step is to load the plugin properly inside your bootstrap.php:

3. Configure app config

4. Create and configure websocket events

5. Configure AppController.php

In your src/Controller/AppController.php, insert the following pieces of code

Usage:

beforeFilter():

6. Make the JS websocket lib globally accessible under App.Websocket

7. Setup sessions properly if not alread done

Please follow the Cake Sessions Documentation

8. Setup Apache SSL ProxyPass if necessary

Make sure these modules are activated:

Edit your vhosts configuration and add this to the ssl section:


Roadmap

1.1.0


All versions of cake-websocket with dependencies

PHP Build Version
Package Version
Requires php Version >=7.3.0
cakephp/cakephp Version >=4.0.0
react/event-loop Version ^1.3
react/socket Version ^1.11
cboden/ratchet Version ^0.4.4
josegonzalez/cakephp-queuesadilla Version >=0.7
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 scherersoftware/cake-websocket contains the following files

Loading the files please wait ....