Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A webserver written in PHP; for my own education.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 Examples
Octocat-spinner-32 Pwas
Octocat-spinner-32 Test
Octocat-spinner-32 README.md
Octocat-spinner-32 Settings.ini
Octocat-spinner-32 phpunit.xml
README.md

Pwas

A small and naive web application server written in PHP. Do not use this in production; or on any public facing server - it is intended to be used for educational purposes only.

Requirements

  • PHP 5.3.*
    • pcntl
    • sockets
  • PHPUnit (if you care to run the tests)

Examples

Running

You can run the examples like so:

php Examples/Hello.php

Hello.php

The most basic of examples.

Json.php

Examples of setting a header, and reacting to the requested path.

Tests

Simply running "phpunit" in the root directory should be all you need to do.

There is a very basic compatibility test file. Running it should give you a good idea of whether or not you will be able to run the server.

Something went wrong with that request. Please try again.