承接 phpbg/mini-httpd 相关项目开发

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

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

phpbg/mini-httpd

Composer 安装命令:

composer require phpbg/mini-httpd

包简介

This is a small http server framework built on top of react http. It allows to quickly build simple applications

README 文档

README

This is a small http server framework built on top of React HTTP.

This framework is designed to build quick proofs of concepts.

It is not mature enough to run in production environments, because:

  • it still contains synchronous blocking code
  • it lacks a dependency (ioc) /configuration management

License

MIT

Features

Most of features are directly inherited from PHP React HTTP

  • Middleware based
  • Highly customizable
  • PSR-7 messages
  • Basic routing
  • Basic PSR-3 logging
  • Static files serving
  • Let you focus on your service logic, not building a HTTP response (boooring)
    • Just return arrays or objects in your route handlers, that's it:
    function (ServerRequestInterface $request) {
        return ['hello' => 'world'];
    }

Install

Install with composer:

composer require phpbg/mini-httpd

Examples

See example folder

  • bare-minimal-json-server.php shows the very minimal setup for json rendering
  • full-featured-server.php shows a full setup with:
    • Static files serving
    • Route redirection examples
    • Automatic PHTML renderer features and suggested layout
    • Accessing request params with proper validation / filtering

There is also a complete example that integrates with ratchet Websockets here: https://github.com/phpbg/mini-httpd-ratchet

TODO

  • writing tests

统计信息

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

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 1
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-10-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固