Skip to content

An updated HTRouter that WILL run CakePHP apps!

Notifications You must be signed in to change notification settings

novaksolutions/HTRouter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Run CakePHP Apps from the PHP 5.4 built in webserver.

HTRouter

This is a modified version of jaytaph's HTRouter. It is still very rudimentary. But has been altered to work with CakePHP Apps, on Windows.

It may allow other apps to function as well.

Work in progress

This stuff is work in progress. Although 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! This project mimics a lot of functionality of the Apache2 (2.2) web-server.

We still need to do a lot of stuff on the mod_rewrite, and we must update the unit-tests and documentation!

Installation

The software can be run without making a PHAR file like so:

  • Set working directory to webroot for cakephp app.
  • php.exe -S 0.0.0.0:8765 -t (path to webroot) HTRouter\phar\stub.php

The software is frequently 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

Don't use this instead of apache... Even for development... I am using this solely to provide a compact webserver for an app that runs behind a firewall and pushes data from a client/server application to a web-server for further processing.

About

An updated HTRouter that WILL run CakePHP apps!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 99.7%
  • Shell 0.3%