Skip to content

nerdgeneration/www.sh

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
www
 
 
 
 
 
 
 
 
 
 
 
 

www.sh

Web framework in Bash

DO NOT USE THIS IN ANY PUBLIC FACING SERVER. THIS IS NOT SECURE. FOR EDUCATIONAL USE ONLY.

Supports standard web framework functions:

  • HTTP status
  • HTTP headers
  • HTTP response
  • Routing
  • Templated views
  • Query and POST data in $_GET and $_POST
  • URL encode/decode
  • Path checks
  • Sanitisation of HTML, SQL
  • MySQL database queries
  • .env files

Requirements:

  • Bash 4.3 (Mac OS X users will need to upgrade using brew install bash)
  • CGI compatible web-server (Apache mod_cgi; nginx fcgiwrap; http.sh)

Status:

Fully Tested: Nothing.

Partially Tested: Docker, CGI integration, GET, POST, Controllers, http_serve, http_header, http_status, route, view, url_decode

Not Tested: Everything else.