Add pre-commit hooks for PHP projects