PHP版的Node.js React

码农软件 · 软件分类 · 高性能网络开发库 · 2019-09-02 07:28:05

软件介绍

React (Node.PHP) 是一个 PHP 开发的平台,用于构建快速、可伸缩的网络应用,可用于事件驱动的、无堵塞的 I/O 模型,特点是轻量级而且高效率,特别适合用于数据敏感的实时应用交互。

示例代码:

require 'vendor/autoload.php';
$stack = new React\Espresso\Stack(function ($request, $response) {
    $response->writeHead(200, array('Content-Type' => 'text/plain'));
    $response->end("Hello World\n");
});
echo "Server running at http://127.0.0.1:1337\n";
$stack->listen(1337);

 

运行方法:

% php example.php
Server running at http://127.0.0.1:1337

 

本文地址:https://www.codercto.com/soft/d/13690.html

Operating Systems

Operating Systems

Remzi Arpaci-Dusseau、Andrea Arpaci-Dusseau / Arpaci-Dusseau Books / 2012-8-19 / USD 21.00

A book about modern operating systems. Topics are broken down into three major conceptual pieces: Virtualization, Concurrency, and Persistence. Includes all major components of modern systems includin......一起来看看 《Operating Systems》 这本书的介绍吧!

URL 编码/解码
URL 编码/解码

URL 编码/解码

SHA 加密
SHA 加密

SHA 加密工具

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具