move config command from bash to PHP, closes #284