Download the PHP package icicleio/websocket without Composer
On this page you can find all versions of the php package icicleio/websocket. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download icicleio/websocket
More information about icicleio/websocket
Files in icicleio/websocket
Package websocket
Short Description Asynchronous WebSocket component for Icicle.
License MIT
Homepage http://icicle.io
Informations about the package websocket
WebSockets for Icicle
Asynchronous, non-blocking WebSocket server.
This library is a component for Icicle that provides an asynchronous WebSocket server that can handle normal HTTP requests and WebSocket requests on the same port. Like other Icicle components, this library uses Coroutines built from Awaitables and Generators to make writing asynchronous code more like writing synchronous code.
Documentation and Support
Requirements
- PHP 5.5+ for v0.1.x branch (current stable) and v1.x branch (mirrors current stable)
- PHP 7 for v2.0 (master) branch supporting generator delegation and return expressions
Suggested
- openssl extension: Required to create secure WebSocket servers.
Installation
The recommended way to install is with the Composer package manager. (See the Composer installation guide for information on installing and using Composer.)
Run the following command to use this library in your project:
You can also manually edit composer.json
to add this library as a project requirement.
Example
The example below creates a simple HTTP server that accepts WebSocket connections on the path /echo
, otherwise responding with a 404 status code on other paths.
All versions of websocket with dependencies
icicleio/socket Version ^0.5.2
icicleio/http Version ^0.3
icicleio/log Version ^0.1
paragonie/random_compat Version ^1