一个适用于用 *PURE* PHP (5.5+) 编写的便捷 HTTP/HTTPS 服务器

v0.1.1 2013-12-17 06:52 UTC

This package is not auto-updated.

Last update: 2024-09-10 02:00:40 UTC


README

Latest Unstable Version Build Status SensioLabsInsight

  • PHP5.5 中可用的非阻塞 IO 以及协程(生成器)
  • 基于 kzykhys/CoroutineIO
  • 已测试于 Wordpress, Symfony2

Terminal

要求

安装

在 Unix 上

curl -s http://kzykhys.com/coupe/install | php

在 Windows 上

下载 coupe.phar

更新

php coupe.phar self-update

用法

访问 http://kzykhys.com/coupe 获取更多信息。

php coupe.phar help start
Usage:
 start [-t|--docroot="..."] [-s|--with-ssl[="..."]] [--without-ssl] [--fallback="..."] [address]

Arguments:
 address               <host>:<port> (default: "localhost:8080")

Options:
 --docroot (-t)        Specify document root
 --with-ssl (-s)       <host>:<port> (default: "localhost:8443")
 --without-ssl         Disables ssl transport
 --fallback            Fallback script (default: false)
 --help (-h)           Display this help message.
 --quiet (-q)          Do not output any message.
 --verbose (-v|vv|vvv) Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
 --version (-V)        Display this application version.
 --ansi                Force ANSI output.
 --no-ansi             Disable ANSI output.
 --no-interaction (-n) Do not ask any interactive question.

许可协议

MIT 许可协议

作者

Kazuyuki Hayashi (@kzykhys)