PHP

refGeneral:

PHP Session:

Framework:

Composer

brew install composer

PHP5 no macOS Mojave

OSX Binary package download source

based on this

curl -s https://php-osx.liip.ch/install.sh | bash -s force 5.6
export PATH=/usr/local/php5/bin:$PATH

Redis Session Handler

phpredis

Install redis extension

pecl install redis

Change php.ini

session.save_handler = redis
session.save_path = "tcp://host1:6379?weight=1, tcp://host2:6379?weight=2&timeout=2.5, tcp://host3:6379?weight=2&read_timeout=2.5"