Giter VIP home page Giter VIP logo

htrouter's Introduction

HTRouter

This is a very rudimentary setup for a router system that will mimic a Apache's .htaccess file. This way it is possible to use a .htaccess file together with the PHP 5.4's built-in webserver.

The whole idea will be that we should be able to run any framework or system that normally depends on htaccess (mostly the rewrite parts):

$ php -S 127.0.0.1:8080 -t /var/www router.php

The router script should read and interpret the .htaccess file found in the current directory and rewrite / fetch the actual file it needs.

Work in progress

This is work in progress. Allthough though some .htaccess functionality is already possible, there is still a lot of work that needs to be done to implement it so it can run out of the box!

Installation

The software is packaged as a PHAR file. This means the whole setup can be run by the following:

Download the PHAR file (htrouter.phar) or build by running phar/buildphar.php $ php -S 0.0.0.0:80 -t /var/www path/to/htrouter.phar

Warning

The internal PHP webserver is NOT meant to be a replacement for any production webserver. It should only used for development purposes!

htrouter's People

Contributors

jaytaph avatar

Watchers

James Cloos 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.