aerys

A non-blocking HTTP application, WebSocket and file server for PHP based on Amp.

Github星跟踪图

aerys

Build Status
License

Aerys is a non-blocking HTTP/1.1 and HTTP/2 application, WebSocket and static file server written in PHP based on Amp.

Deprecation

This repository is deprecated in favor of amphp/http-server.
It still exists to keep the documentation and also Packagist working as before.

Installation

composer require amphp/aerys

Documentation

Running a Server

php bin/aerys -c demo.php

Simply execute the aerys binary (with PHP 7) to start a server listening on http://localhost/ using
the default configuration file (packaged with the repository).

Add a -d switch to see some debug output like the routes called etc.:

php bin/aerys -d -c demo.php

Config File

Use the -c, --config switches to define the config file:

php bin/aerys -c /path/to/my/config.php

Use the -h, --help switches for more instructions.

Static File Serving

To start a static file server simply pass a root handler as part of your config file.

return (new Aerys\Host)
    ->expose("*", 1337)
    ->use(Aerys\root(__DIR__ . "/public"));

Security

If you discover any security related issues, please email bobwei9@hotmail.com or me@kelunik.com instead of using the issue tracker.

License

The MIT License (MIT). Please see LICENSE for more information.

主要指标

概览
名称与所有者amphp/aerys
主编程语言PHP
编程语言PHP (语言数: 2)
平台
许可证MIT License
所有者活动
创建于2018-03-11 16:49:20
推送于2020-08-30 19:24:05
最后一次提交2020-08-30 21:24:04
发布数20
最新版本名称v0.7.4 (发布于 )
第一版名称v0.1.0 (发布于 )
用户参与
星数57
关注者数10
派生数10
提交数1.4k
已启用问题?
问题数0
打开的问题数0
拉请求数3
打开的拉请求数1
关闭的拉请求数0
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?