/php-reverse-proxy

A reverse proxy written in pure PHP with the help of the Bramus PHP router

Primary LanguagePHP

php-reverse-proxy

forward happily

A reverse proxy written in pure PHP with the help of the Bramus PHP router.

This can work perfectly as a nginx alternative in case you're working on a shared hosting service or facing any difficulties in configuring nginx

Features

Installation

  • Install the required dependencies using
composer install
  • Configure it to your liking by editing the config.php file
  • Make sure the .htaccess is in place.

Caching behaviour

This project currently follows the essential bits of the Cloudflare default caching behaviour (https://developers.cloudflare.com/cache/about/default-cache-behavior/)

Currently, php-reverse-proxy doesn't handle any cache expiry headers and will force all the cached resources to expire as configured in the ttl value of the config.php file

The caching procedure of php-reverse-proxy is to be improved in the near future :)