https://github.com/tomnomnom/pwas
A webserver written in PHP
https://github.com/tomnomnom/pwas
Last synced: about 1 year ago
JSON representation
A webserver written in PHP
- Host: GitHub
- URL: https://github.com/tomnomnom/pwas
- Owner: tomnomnom
- Created: 2011-09-03T14:17:17.000Z (almost 15 years ago)
- Default Branch: master
- Last Pushed: 2011-09-06T23:33:06.000Z (almost 15 years ago)
- Last Synced: 2025-03-24T06:02:42.353Z (about 1 year ago)
- Language: PHP
- Homepage:
- Size: 156 KB
- Stars: 6
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://github.com/TomNomNom/Pwas/blob/master/Examples/Hello.php)
The most basic of examples.
### [Json.php](https://github.com/TomNomNom/Pwas/blob/master/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](https://github.com/TomNomNom/Pwas/blob/master/Test/CompatibilityTest.php) file.
Running it should give you a good idea of whether or not you will be able to run the server.