Fix snippet to escape php variable
Update gitignore and config file