承接 aabalexander/php-websockets 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

aabalexander/php-websockets

最新稳定版本:2.0-alpha1

Composer 安装命令:

composer require aabalexander/php-websockets

包简介

General Purpose PHP Websockets

README 文档

README

This library is in an early Alpha state, and is not useful right now for any purpose other than showing error messages.

It extends concepts I learned in my original WebSockets library, and implements it in a way that's not quite so... amateur and embarrassing.

Examples will appear at my Examples repository

Intended use is:

<?php

// Assuming your code is in your project's "/code" or similar directory
require_once (__DIR__ . '/../vendor/autoload.php');

$webSocketsDiContainer = new GpwsDIContainer();

$server = $webSocketsDiContainer->getWebsocketServer();

$server->setListenAddress('0.0.0.0', 8080);

$eventHandler = new MyAppsEventHandler();

$server->registerEventHandler($eventHandler);

$server->run();

// cleanup.

I do have Patreon goals. As my personal financial situation becomes less dire, I'll be more able to provide support for the community.

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2024-02-17