Download the PHP package icy8/socket-io without Composer

On this page you can find all versions of the php package icy8/socket-io. 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 socket-io

socket-io

介绍

基于php的socket.io服务端,因为workerman/phpsocket.io只支持到socket.io 3.0,所以需要自己动手写轮子。

目前只支持 socket.io 4.0 版本,后续有时间会做兼容。因为最开始是为了对接websocket写的,没有详细对比过官方的server端代码,所以不确定有哪些功能是缺失的。

软件架构

  1. workerman
  2. php>=7.0

安装教程

使用说明

新建命令行文件:websocket.php

如果在linux中运行,通常建议加上-d选项守护进程。

其他工具

结合事件发布器,即可通过http向websocket客户端发送消息:

关于性能

目前还没有针对性能做过测试,所以相关性能依然是未知的。

后续版本

  1. 兼容旧版握手协议。
  2. 还原更多官方功能,如长轮询等。
  3. 优化http事件发布功能。
  4. 增加webhook功能。

All versions of socket-io with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
workerman/workerman Version ^4.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 icy8/socket-io contains the following files

Loading the files please wait ...