Adding PHP patterns