add phpmd, build configs