arishem/php-http-server 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

arishem/php-http-server

最新稳定版本:1.0.1

Composer 安装命令:

composer require arishem/php-http-server

包简介

A lightweight, in-house PHP HTTP server with WebSocket support.

README 文档

README

A minimal PHP-based HTTP server implementation and examples. Designed for local development and educational purposes — demonstrates basic request handling, routing, and response generation in PHP.

Features

  • Simple HTTP request handling
  • Minimal routing examples
  • Easy to run for local development and demos

Requirements

  • PHP 7.4+

Installation

Clone the repository:

git clone https://github.com/DeveloperKeshavKumar/php-http-sever.git
cd php-http-sever

Running the server

There are two common ways to run a minimal PHP HTTP server locally:

  1. Using PHP built-in web server (recommended for quick testing)
php -S 127.0.0.1:8080 -t public
  1. If an entry script is provided (e.g. server.php or run.php)
php server.php

Replace server.php with the actual script name if present.

Examples

Describe examples or endpoints that the repo contains, e.g.

  • GET / -> returns "Hello World"
  • GET /status -> returns 200 OK with JSON

(Replace or expand sections above with concrete examples from the code.)

Contributing

Contributions are welcome. Please open an issue to discuss changes or send a pull request.

License

This repository is available under the MIT License. See the LICENSE file for details.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-03-11