RobiNN1 / phpCacheAdmin

A web dashboard for your favorite caching system.
MIT License
302 stars 11 forks source link
admin apcu cache dashboard gui memcache memcached opcache php phpcacheadmin realpath redis tailwindcss ui web

Logo

A web dashboard for your favorite caching system.

Preview

Visitor Badge

Installation

Unzip the archive and launch index.php in a web browser. No installation is required. However, it is highly recommended (although not required) to run composer install.

If you use the defaults (e.g. Redis, Memcached servers), everything should work out of the box. To customize the configuration, do not edit config.dist.php directly, but copy it into config.php.

Updating

Replace all files and delete the tmp folder (this folder contains only compiled Twig templates).

Environment variables

All keys from the config file are supported ENV variables, they just must start with PCA_ prefix.

Options with an array can be set using "dot notation" but use _ instead of a dot. Or you can even use JSON (e.g. Redis SSL option).

Redis:

Memcached:

Open config file for more info.

To add another server, add the same environment variables, but change 0 to 1 (2 for third server and so on).

Docker

A Docker image is also available: https://hub.docker.com/r/robinn/phpcacheadmin

Run with single command:

docker run -p 8080:80 -d --name phpcacheadmin -e "PCA_REDIS_0_HOST=redis_host" -e "PCA_REDIS_0_PORT=6379" -e "PCA_MEMCACHED_0_HOST=memcached_host" -e "PCA_MEMCACHED_0_PORT=11211" robinn/phpcacheadmin

Or use it in docker-compose.yml

version: '3'
services:
  phpcacheadmin:
    image: robinn/phpcacheadmin
    ports:
      - "8080:80"
    #volumes:
    # If you want to use config.php instead of ENV variables
    #  - "./config.php:/var/www/html/config.php"
    environment:
      - PCA_REDIS_0_HOST=redis
      - PCA_REDIS_0_PORT=6379
      - PCA_MEMCACHED_0_HOST=memcached
      - PCA_MEMCACHED_0_PORT=11211
    links:
      - redis
      - memcached
  redis:
    image: redis
  memcached:
    image: memcached

Requirements

It is not necessary to have all dashboards enabled.

Custom Dashboards