Giter VIP home page Giter VIP logo

aerys's Introduction

Aerys Build Status

A non-blocking HTTP/1.1 application, websocket and static file server written in PHP.

Though Aerys has been iterated on for quite a while there no official tagged releases (yet). APIs are still subject to change and you may run into rogue bugs features. We love PRs, though :)

Selected Built-in Features ...

  • Static file serving
  • Websockets
  • Dynamic app endpoint routing
  • Name-based virtual hosting
  • Full TLS support
  • Customizable GZIP output compression
  • HTTP/2 (in-progress)
  • Middleware hooks

Requirements

  • PHP 7

Installation

$ composer require amphp/aerys

Running a Server

$ php bin/aerys

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

Config File

Aerys looks for its config file in the following locations (relative to the repo root):

  • ./config.php
  • ./etc/config.php
  • ./bin/config.php

If none of the relative locations holds a config.php the server checks the following absolute path:

  • /etc/aerys/config.php

The first discovered config.php is used. Alternatively, the -c, --config switches define a custom config file:

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

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

Example Host Configurations

@TODO

aerys's People

Contributors

bwoebi avatar j7mbo avatar kelunik avatar morrisonlevi avatar nikic avatar ocramius avatar rdlowrey avatar staabm avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.