refactor configuration files and update php docs