added php code check and some snippets